Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

snAIke

snAIke is a DQN neural network that learns how to play snake in a 9x9 map. It is written in python using pytorch and uses a reinforcement learning model based on rewards to understand the rules of the game and maximize the score. snAIke implements a epsilon-greedy algorithm to allow an exploration phase for the first attempts (~950). The network has 90 inputs (one for each tile, one for the snake direction and 8 for every tile around the snake), a first hidden layer with 256 neurons, a second hidden layer with 128 neurons and 4 outputs (up, down, bottom, left)

Install requirements: pip install -r requirements.txt

About

DQN neural network that learns how to play snake

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages