An open API service indexing awesome lists of open source software.

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.

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)**