Skip to content

A snake AI made using pygame and a deep Q algorithm written with pytorch.

License

Notifications You must be signed in to change notification settings

mdanyalmalik/snake-ai-dqn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake AI

Description

A snake clone with a self-learning AI mode, where the agent makes use of reinforcement learning to teach itself the game. This is done via the use of a deep Q learning model written using pytorch. Furthermore, there is also a single-player mode to see how well you can do compared to the AI.

Getting Started

  • to run the game, run main.py in src

Dependencies

  • pygame
  • pygame gui
  • pytorch

Authors

Me: @mdanyalmalik

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A snake AI made using pygame and a deep Q algorithm written with pytorch.

Topics

Resources

License

Stars

Watchers

Forks

Languages