Skip to content

Gud-will/snake_game_rl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages