Classic snake game with machine learning
This is a project to train a neural network to play the game snake. The neural network is trained using MLP algorithm. This project is written in python and uses the arcade library for the game.
pip install -r requirements.txt
- Collect data and generate dataset
python generate_dataset.py
Press 'Q' on keyboard to stop collecting data and save collected dataset.
- Train neural network
python train.py
- Play game
python main_ml.py