Using reinforcement learning with Monte Carlo evaluation and control to play Snake.
Snake game was implemented from scratch by using PyGame.
Monte Carlo control and evaluation were implemented from scratch using Python, resulting in 3 main classes for:
- Evaluation
- Policy
- State
The game is correctly played after reaching exploration rate 0, by avoiding the tail and catching the food.
Press space bar to increase FPS and learning speed.