Sample code for Q-learning
Here is some sample C++ (pseudo)code for how to implement the major
components of Q-learning:
How to implement vectors and the state-space as a lookup table
How to implement Q-learning
Sample implementation - the HouseRobot problem