https://github.com/datarohit/ai-snake-game
This is a Deep-Q Learning based AI Snake Game where the Model Incrementally Learns and Improves to Play the Game.
https://github.com/datarohit/ai-snake-game
deep-learning matplotlib pygame python pytorch reinforcement-learning
Last synced: 2 months ago
JSON representation
This is a Deep-Q Learning based AI Snake Game where the Model Incrementally Learns and Improves to Play the Game.
- Host: GitHub
- URL: https://github.com/datarohit/ai-snake-game
- Owner: DataRohit
- Created: 2023-12-07T10:54:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T12:19:06.000Z (over 2 years ago)
- Last Synced: 2025-02-15T07:47:18.676Z (over 1 year ago)
- Topics: deep-learning, matplotlib, pygame, python, pytorch, reinforcement-learning
- Language: Jupyter Notebook
- Homepage:
- Size: 571 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI-Snake-Game
## Steps to Train and Test the Code (Windows with GitBash)
### Step 1: Clone Repo
```bash
$ git clone https://github.com/DataRohit/AI-Snake-Game.git
```
### Step 2: Setup Virtual Environment
```bash
$ python -m venv venv
```
```bash
$ source venv/Scripts/activate
```
```bash
$ pip install -r requirements.txt
```
### Step 3: Run the Code in Jupyter Notebook and you will see the output. It takes around 10 - 15 minutes for the agent to get better at game.
**Credits [freecodecamp](https://www.youtube.com/@freecodecamp)**