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

https://github.com/xffxff/solve-snake

Solve snake game with reinforcement learning algorithms
https://github.com/xffxff/solve-snake

dqn ppo rl snake-game

Last synced: about 2 months ago
JSON representation

Solve snake game with reinforcement learning algorithms

Awesome Lists containing this project

README

          

# Solve the snake game with reinforcement learning algorithms.

## Installation
### Create the python environment
```
conda create -n snake python=3.6
source activate snake
```

### Install [openai/baselines](https://github.com/openai/baselines.git)
```
git clone https://github.com/openai/baselines.git
cd baselines
pip install -e .
```

### Install [snake-gym](https://github.com/XFFXFF/snake-gym.git)
```
git clone https://github.com/XFFXFF/snake-gym.git
cd snake-gym
pip install -e .
```

### Install solve-snake
```
git clone https://github.com/XFFXFF/solve-snake.git
cd solve-snake
pip install -e .
```

## Running Tests
### Training a single agent model with dqn
```
python single_agent/dqn.py
```