A snake game made in Pygame 2 that will be used to train a neural network AI that will eventually take control over snake.
- Python 3.9
- Pygame 2 (
pip install pygame==2.0.0
) - Numpy (
pip install numpy
) - Tensorflow
- Sklearn
- Matplotlib
- OpenAI Gym (
pip install gym
)
For Mac M1, follow these instructions
Or, in short:
brew install miniforge
conda init zsh
conda activate # perhaps restart terminal
which python # should be: /opt/homebrew/Caskroom/miniforge/base/bin/python
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
python -m pip install tensorflow-metal
conda install pandas scikit-learn numpy
python -m pip install matplotlib jupyterlab
python main.py