Skip to content

Neural Network learning how to play snake made in c++ without any external libraries

Notifications You must be signed in to change notification settings

domus55/Neural-Network-Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural-Network-Snake

Neural network is built from input layer with 14 neurons, 2 hidden layers with 8 neurons each and output with 3 neurons.

At the beggining neural network have average length of 3.8

alt text alt text

Progress after 2 minutes

alt text

Progress after 4 minutes

alt text

We can see snake by clicking 'p'

alt text

Progress after 6 minutes

alt text

Progress after 10 minutes

alt text

Progress after 20 minutes

alt text

This is how snake looks like

alt text alt text alt text

Summary

Time 0 minutes 2 minutes 4 minutes 6 minutes 10 minutes 20 minutes
Average length 3.8 4 8.1 15.2 21.8 24.2

About

Neural Network learning how to play snake made in c++ without any external libraries

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages