Skip to content

RLSnake is a project where we implement and train artificial intelligence to play the classic Snake game using reinforcement learning.

Notifications You must be signed in to change notification settings

mnovgorodtsev/RLSnake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RLSnake

RLSnake is a project where we implement and train artificial intelligence to play the classic Snake game using reinforcement learning. We leverage advanced deep learning techniques to enable our artificial intelligence to effectively navigate the dynamic and changing Snake game environment.

Environment

The game environment is custom-built using PyGame, a popular library for creating 2D games in Python. Our environment provides the necessary framework for the agent to interact with the game world, receive feedback, and learn from its actions. The environment is compatible with reinforcement learning libraries, making it suitable for training AI agents.

Algorithm

The project uses the Deep Q-Learning (DQN): A popular RL algorithm that uses a neural network to approximate the Q-value function.

Final effect

image

snake_obstacles.mp4

About

RLSnake is a project where we implement and train artificial intelligence to play the classic Snake game using reinforcement learning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%