Skip to content

A simple game made with python, pygame and pytorch to automate snake game.

License

Notifications You must be signed in to change notification settings

AI-POLARIS/let-python-play-python

Repository files navigation

Let Python, Play Python

Preview

What is this?

This is a simple game made with python and pygame. We made it possible to automate the game by impleminting some machine learning algorithms. It plays the game by itself and learns from its mistakes.

How to run?

  1. Clone the repository
  2. Install the requirements
  3. Run the agent.py file by python agent.py
  4. Enjoy the game

Requirements

You can use the requirements.txt file to install the requirements. Run the following command to install the requirements.

pip install -r requirements.txt

Or you can install the requirements manually.

  • Python 3.6+
  • Pygame
  • Numpy
  • PyTorch
  • matplotlib
  • IPython

It's recommended to use a virtual environment to install the requirements.

About

A simple game made with python, pygame and pytorch to automate snake game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages