Skip to content

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

Notifications You must be signed in to change notification settings

drikusroor/deep-snake

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages