Gud-will / snake_game_rl

Learning RL by training ai on snake game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snake_game_rl

Learning RL by training AI on the snake game

Motivation

Beating the game with the help of AI has always fascinated me and this repo is my try at learning reinforcement learning on a simple snake game. The code is done with the help of Python + PyTorch + Pygame Reinforcement Learning – Train an AI to Play Snake by freecodecamp

Results

After about 180 games the AI produced a maximum score of 68.
And after about 150 games the AI consistently scored 15+ in its trials.

About

Learning RL by training ai on snake game


Languages

Language:Python 100.0%