Chandrakantsm / MachineLearning-SnakeAI-Pygame

Linear Q-net model trained to play the classic game 'Snake'. Can play at superhuman levels after about 100 games/10 minutes of training.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MachineLearning-SnakeAI-Pygame

Trained a linear Q model using mean-squared error loss, to predict movements of a snake, based on inputs of orientation of snake, position of food, etc.

The model learns how to play at a reasonable standard after about 100 games.

About

Linear Q-net model trained to play the classic game 'Snake'. Can play at superhuman levels after about 100 games/10 minutes of training.


Languages

Language:Python 100.0%