Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1 KB

README.md

File metadata and controls

41 lines (31 loc) · 1 KB

Deep Snake

A snake game made in Pygame 2 that will be used to train a neural network AI that will eventually take control over snake.

Screenshot of Deep Snake

Prequisites

  • Python 3.9
  • Pygame 2 ( pip install pygame==2.0.0 )
  • Numpy (pip install numpy)
  • Tensorflow
  • Sklearn
  • Matplotlib
  • OpenAI Gym (pip install gym)

Mac M1

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

Run Deep Snake

python main.py