Skip to content

Classic Snake game implemented in Python, alongside a reinforcement learning agent

License

Notifications You must be signed in to change notification settings

erudzitis/Snake_RL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game with Reinforcement Learning

This project features a classic Snake game implemented in Python, alongside a reinforcement learning agent developed using PyTorch. The agent is trained to play the Snake game autonomously.

Installation

  1. Clone the repository:

    git clone https://github.com/erudzitis/Snake_RL.git
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Run the Snake game:
    python src/game.py

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Classic Snake game implemented in Python, alongside a reinforcement learning agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages