Train a Neural Network to play Snake using a Genetic Algorithm.
To install required libraries:
$ pip install -r requierments.txt
To run on Windows you will have to additionally install curses:
pip install windows-curses
$ cd SnakeAi
or
$ cd ImprovedSnakeAI
Run game with existing bot:
$ python main.py <path-to-genome>
Run genetic algorithm to create new bots:
$ python ai.py
├── README.md <- Information about the project
├── requiermnts.txt <- File for installation of additional libraries
├── SnakeAI <- First version of project
│ ├── main.py <- File to run game with existing bot
│ ├── ai.py <- Run genetic algorithm to create new bots
│ ├── game.py <- Implementation of game and related API
│ ├── config-feedforward <- GA config file
│ └── bots <- Folder with some pre-created bots
├── ImprovedSnakeAI <- Second version of project
│ ├── main.py <- File to run game with existing bot
│ ├── ai.py <- Run genetic algorithm to create new bots
│ ├── game.py <- Implementation of game and related API
│ ├── config-feedforward <- GA config file
│ └── bots <- Folder with some pre-created bots