Skip to content

A Deep Q Network A.I agent that plays the old classic Nokia Snakes Game!

License

Notifications You must be signed in to change notification settings

7enTropy7/Serpinco_

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forthebadge made-with-python

Python 3.6 LinkedIn-profile License: GPL v3 GitHub followers GitHub stars

Serpinco_

Code for a Deep Reinforcement Learning based A.I agent that plays the classic Nokia Snakes Game. The game was developed using Pygame and the DQN algorithm was implemented using Keras.

Cloning

$ git clone https://github.com/7enTropy7/Serpinco_.git

Directory Contents

$ cd Serpinco_/
$ tree
.
├── ai.py
├── elements
│   ├── apple.png
│   └── square.png
├── LICENSE
├── README.md
├── requirements.txt
└── snake.py

1 directory, 7 files

Dependencies

$ pip3 install -r requirements.txt

Instructions

$ python3 snake.py --speed 70 --render True

Note :

  • You can adjust the Speed from 0 (slowest) to 100 (fastest).
  • Render can be set to either True or False

Now sit back and watch my AI play the game!

Output

ezgif com-gif-maker (1)

Author

LinkedIn-profile

License

License: GPL v3

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages