SajedehGharabadian / Snake-AI

Snake game with machine learning written in python and used arcade, tensorflow library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake game with Machine Learning

Discription

The project focuses on the artificial intelligence of the Snake game, can play game automatically. This game is written in python.

How to install

pip insatll -r requirement.txt

How to run

1- Generate dataset

python generate_dataset.py

2- Train dataset with neural network

python train.py

3- Play game

python main_mlp.py

Loss and Accuracy

Dataset Algorithm Accuracy Loss
Train Dataset MLP 99.36% 0.0319
Test Dataset MLP 99.362% 0.0318

image

About

Snake game with machine learning written in python and used arcade, tensorflow library.


Languages

Language:Python 100.0%