This directory contains the package with the code for training an agent on the snake environment. It contains our own implementation of the PPO algorithm, as well as utilities for collecting samples.
This directory also contains several scripts, including:
human_player.py
- a script for playing the snake game as a humanrandom_player.py
- a script for viewing a random agent play the snake gameai_player.py
- a script for viewing an ai agent on the snake gameexample_trainer.py
- an example script showing how to use this repository to train an agent for the snake game
To install this package, open the snake-ai
directory and run the following command in your shell:
pip install .
If you want an editable install, meaning that changes you write will immediately be reflected without having to reinstall the package, run the following command instead:
pip install -e .