Regarding the tutorial A Painless Q-Learning Tutorial, this simple demo iterates trough the steps of the solution. Click on a cell to set it as the current state.