Installation¶
Clone GridWorld’s repository¶
git clone https://github.com/sbugallo/GridWorld-MDP.git
cd GridWorld-MDP
The following instructions assume that you are located in the root of GridWorld-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 gridworld
Assuming that you have the environment activated, we install gridworld 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 a script that can be run directly in your terminal:
gridworld-play
To see how it works, please go to Usage section
Docker¶
To facilitate the usage, a docker image is available at https://hub.docker.com/r/sbugallo/gridworld .