samjabrahams / taqtoe

Train and play against a Dueling Double Q-Network to play tic-tac-toe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TaQToe

Getting up and running

Requires Python 3.4 or higher. You may also want to consider installing this inside of a Conda environment or Virtualenv.

1. Clone the repository

git clone https://github.com/samjabrahams/taqtoe.git

cd taqtoe

2. Install required dependencies

First make sure that your version of pip is up-to-date:

pip install --upgrade pip

Then install the requirements listed in requirements.txt:

pip install -r requirements.txt

3. Play some games!

python main.py

Main usages:

Play tic-tac-toe with included pre-trained DQN model.

python main.py

Train you own model from scratch (may take a while to run to completion).

python main.py -t
# OR
python main.py --train

Play against your custom trained model

python main.py -c
# OR
python main.py --use_custom_weights

About

Train and play against a Dueling Double Q-Network to play tic-tac-toe


Languages

Language:Python 100.0%