Installation

Prerequisites

Prerequisites:

  • conda (included in Miniconda 3 and Anaconda 3 distributions)

Clone the ttt’s repository

git clone https://github.com/sbugallo/TicTacToe-MDP.git
cd TicTacToe-MDP

The following instructions assume that you are located in the root of TicTacToe-MDP’.

Install requirements

conda is the recommended way for installing all the requirements. You can install conda from this link. The following instructions assume that you have conda installed on your system.

Predefined conda environments for different use cases are provided under ./envs. There are 2 available environments:

  • dev.yml: for simple execution usage.

  • prod.yml: to generate docs, test and develope new features.

You can create a new conda environment as follows:

conda env create -f ./envs/{dev.yml | prod.yml}

Usage examples:

conda env create -f ./envs/dev.yml
conda env create -f ./envs/prod.yml

Once our environment is installed, we have to activate it running the following:

source activate ttt

Assuming that you have the environment activated, we install ttt module running:

python setup.py install

If you plan to modify de source code, run some tests or generate documentation you should install the module in development mode:

python setup.py develop

This will also install some scripts that can be run directly in your terminal:

  • ttt-human-vs-human

  • ttt-human-vs-cpu

  • ttt-cpu-vs-cpu

  • ttt-train

To see how they work, please go to Usage section

Docker

To facilitate the usage, a docker image is available at https://hub.docker.com/r/sbugallo/ttt .

Prerequisites

Prerequisites: