- To see help: python-3.x Snakky.py h
TODO
- Adding AI still in progress
- while opening the game from
terminal
use the commandpython-3.5 Snakky.py [flags]
or if you have default python3.5 in/usr/bin/env
just givechmod
execute capability toSnakky.py
and run the game using./Snakky.py [flags]
- To create the data set while playing set the
s
option while opening the game from terminal. - To run in AI mode set the
p
flag (Please don't use this feature now because it has yet to be integrated.)
When you are playing the game and if the s
flag is set the scripts behined, starts gathering information about the coordinates of the snake and of the apple at every iteration. The data is then shaped in the form of an image of the snake game as seen by the player. This data is then passed through the neural network model and used to train the model. The weights are saved and will be used during the gameplay.