Skip to content

OpenAI's PPO baseline applied to the classic game of Snake

License

Notifications You must be signed in to change notification settings

GNiendorf/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake

See: https://openai.com/blog/requests-for-research-2/

Solving the classic game of snake with OpenAI's PPO baseline.

Alt Text

Installation

Clone the git repository and use the following pip command in the downloaded directory.

pip3 install -e .

Training

Use train.py with the following to train for a million frames. This also saves the model at the end of training.

python3 train.py

Viewing Model

Likewise, use view.py with the following to save an mp4 file of the agent playing.

python3 view.py