Skip to content

A demonstration of deep reinforcement learning for the game snake

Notifications You must be signed in to change notification settings

rajansaini691/Snake-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake-AI

About

The Snake-AI project combines reinforcement learning with a feedforward network to create a self-improving AI that will learn to play the game Snake. Several different controlled experiments (see comments in entities.py for details) were done to lower the number of iterations necessary to reach a "good" solution. The network's logic, in logic.py, is my own implementation of a feedforward network. It has not been optimized and is used for personal practice.

Dependencies

This project uses pygame and numpy. Please run pip install pygame and pip install numpy to ensure that these are installed.

Running

python game.py

About

A demonstration of deep reinforcement learning for the game snake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published