Skip to content

A multiplayer American Checkers game built using Python.

License

Notifications You must be signed in to change notification settings

nikeshsraj10/checkers-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

American Checkers - AI (WIP)

This repository hosts the American Checkers game built using Python.

Checkers Board

Rules:

Open rules.md to view the rules of the game

Python Version

3.8.6

Setup

Python version: 3.0+

Libraries

Sample Installation commands <Open the above link to find appropriate command depending on your OS & PackageManager

Run: pip install numpy
Run: pip install matplotlib
Run: pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

How to play?

Clone the repository by using the URL: https://github.com/nikeshsraj10/checkers-ai.git

CD into the game directory: cd checkers-ai

To play against our AI:

Run: python .\src\main.py
You'll have the option to play against an AI or another Human or watch two AI play
Run the above command to know more

Simulate MCTS AI vs Baseline AI

To Configure the board and number of games use the below command
Run: python .\src\bot_simulate.py {board_config} {number_of_games}
Valid values for board_config are 8 & 10

The following command will run 8x8 board for 50 games
Run: python .\src\bot_simulate.py 8 50

Simulate MCTS + NN AI vs MCTS AI

To Configure the board and number of games use the below command
Run: python .\src\treenn_vs_tree.py {board_config} {number_of_games}
Valid values for board_config are 8 & 10

The following command will run 8x8 board for 50 games
Run: python .\src\treenn_vs_tree.py 8 50

View data and performance

Run: cd plots to check out the plots and the saved data from our simulation
View Plots: Plots