/rl-snake-game

Reinforcement Learning AI learns how to play snake game using the frameworks Pytorch and Pygame

Primary LanguagePythonMIT LicenseMIT

Reinforcement Learning Snake game

AI that learns how to play snake game using Pytorch and take generations to perfect the game (no GPU required).

Get Started

See this program in action

  virtualenv env

then

  source env/bin/activate 

then

  pip install -r requirements.txt

to run the program :

  python agent.py