TCD Group Project for AI
We are using Python 3.6 in this project.
Create a python3 virutal environment and activate it.
If you use venv
, follow as below to create a virtual environment.
python -m venv <Virtual Env Name>
source <Virtual Env Name>/bin/activate
If you use conda
, follow as below to create the virtual environment.
conda create -n <Virtual Env Name> python=3.6
Activate and Deactivate before and after working with the project.
conda activate <Virtual Env Name>
conda deactivate
After that install the required packages using pip,
pip install -r requirements.txt
Checkout this repository to your local machine
Change the current working directory to the path where you have cloned or downloaded the repository.
Once in project directory
cd OthelloWithAI
To start playing
python play.py
You will be opted to choose both players from "human,random,alphabeta,expectimax,minimax"
If you want to play manually, enter "human".
If you want to choose AI, choose one of four agents presented to you.
To select the difficulty level, please select
- '1' for Easy
- '2' for Medium
- '3' for Hard
Enjoy the game.
- We use Travis-CI for continuous integration in this project.
- We use
git-latexdiff
to track the changes made in the latex version of the final report.
To install git-latexdiff
follow the below instructions,
-
Extract the zip file, "git-latexdiff-master.zip" from this repository outside of the repository folder.
-
We need to install
git-latexdiff
in Git's exec-path using the make file. We needasciidoc
to create the make file. Run the below commands to install the same.
Linux Users (Also make sure gcc is installed):
sudo apt-get install -y asciidoc
Mac Users (Make sure Homebrew is installed):
brew install asciidoc
cd
into the extracted folder and do,make install
If git was installed on root, follow this,
sudo make install
- You can verify the installation as following,
cd
into the path given bygit --exec-path
andls
. The output of this should show yougit-latexdiff
, if installed successfully.