SnakeAI
SnakeAI copied to clipboard
Train a Neural Network to play Snake using a Genetic Algorithm
I wonder what will happen if there is added a input for 'hunger' ie. the longer after last apple, the hungrier the snake gets
Loading the saved .csv model file failed if we trained model with more generations than are weights in level L0. Method in SnakeAI.pde: void fileSelectedIn(File selection) 157: while(genscore != 0)...
For the diagonal directions, it seems your distance calculation is wrong, it might be the correct distance as the crow flies, but you cannot walk like that in Manhattan (nor...
# Operating System Windows 10 # Steps to reproduce 1) Start SnakeAI 2) Click on Save Button 3) Enter a filename with an extension other than .csv, "model.dat" for e.g....
Thanks for sharing the great code! I am working most of the time with PyTorch. My question is How can I plug my `PyTorch model` to your snake's brain?
I was wondering what is the value of input when food is not found in specific direction? Is is 0 by default?
I really wonder what happens if you add one more input neuron that represents size of the snake. If the size also be taken into account, better strategies will be...
> Build a snake bot and compete with other developers https://github.com/battlesnakeio