Skip to content

MikeChunko/boa-dqn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boa-dqn

Applies a Deep Q Network to solve a game of Snake. Currently the DQN is able to eat the food an average of three times by the end of a 200 game training batch, with a high score of eleven. The DQN can clearly avoid walls and get food but has a difficult time avoiding the snake's tail.

The weights determined from training are stored in weights.hdf5.

The implementation of Snake is a modified version of https://github.com/MikeChunko/boa.

To run and train, make sure you have the keras, numpy, and pygame libraries installed, clone the repo, and run python boa.py.

Run python boa.py --help for a complete list of options.

About

A DQN for solving Snake

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages