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
- Host: GitHub
- URL: https://github.com/xffxff/solve-snake
- Owner: xffxff
- License: apache-2.0
- Created: 2019-01-07T07:52:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T01:05:41.000Z (over 7 years ago)
- Last Synced: 2025-01-28T03:17:29.780Z (over 1 year ago)
- Topics: dqn, ppo, rl, snake-game
- Language: Python
- Homepage:
- Size: 143 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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
```