The project focuses on the artificial intelligence of the Snake game, can play game automatically. This game is written in python.
pip insatll -r requirement.txt
1- Generate dataset
python generate_dataset.py
2- Train dataset with neural network
python train.py
3- Play game
python main_mlp.py
Dataset | Algorithm | Accuracy | Loss |
---|---|---|---|
Train Dataset | MLP | 99.36% | 0.0319 |
Test Dataset | MLP | 99.362% | 0.0318 |