Skip to content

A snake game agent that was trained using Reinforcement Learning with Deep Q Network.

Notifications You must be signed in to change notification settings

wyhong3103/snake-game-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game AI

This is my project for the 24th MMU Hackerspace Hackathon. The goal is to train a neural network to play snake game using RL (Reinforcement Learning) with Deep Q Learning in PyTorch.

This snake game is playing on a 8x8 grid, because I didn't have much time to train for a 20x20 board. Feel free to change self.N parameter in the environment.py and retrain it.

If you'd like, you can run main.py for a snake game simulation with the trained agent.

Approach

Here

About

A snake game agent that was trained using Reinforcement Learning with Deep Q Network.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published