https://github.com/mohammedrashithkp/drlforsnakegame
This project utilises a Deep Reinforcement Learning specifically Q learning implemented using PyTorch which learns the game by interacting with the pygame environment .I have followed a tutorial on Freecodecamp YouTube Channel and made the initial model.
https://github.com/mohammedrashithkp/drlforsnakegame
deep-reinforcement-learning matplotlib-pyplot numpy pygame python
Last synced: about 1 month ago
JSON representation
This project utilises a Deep Reinforcement Learning specifically Q learning implemented using PyTorch which learns the game by interacting with the pygame environment .I have followed a tutorial on Freecodecamp YouTube Channel and made the initial model.
- Host: GitHub
- URL: https://github.com/mohammedrashithkp/drlforsnakegame
- Owner: mohammedrashithkp
- License: mit
- Created: 2025-02-22T20:35:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-23T07:20:32.000Z (9 months ago)
- Last Synced: 2025-02-23T07:28:28.384Z (9 months ago)
- Topics: deep-reinforcement-learning, matplotlib-pyplot, numpy, pygame, python
- Language: Python
- Homepage:
- Size: 10.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deep Reinforcemnet Learning For Snake Game
This project utilises a Deep Reinforcement Learning specifically Q learning implemented using PyTorch which learns the game by interacting with the pygame environment .I have followed a tutorial on Freecodecamp YouTube Channel and made the initial model.
## Demo Training Video
https://github.com/user-attachments/assets/0c2ae865-a5fc-4299-8c31-3a7e7a47a919
## Working [TODO]
## How to Use
1. Clone and Change to the project directory by running
```bash
git clone https://github.com/mohammedrashithkp/RNN-for-Snake-Game.git && cd RNN-for-Snake-Game
```
2. Install the dependencies by running
```
pip install -r requirements.txt
```
3.Run the Program
``` bash
python agent.py
```
## Current Highscore Obtained

## References
- [FCC YT Tutorial](https://youtu.be/L8ypSXwyBds?feature=shared)
- [Pygame Tutorial](https://youtu.be/FfWpgLFMI7w?feature=shared)
- [Pytorch Tutorial](https://youtu.be/V_xro1bcAuA?feature=shared)