Giter VIP home page Giter VIP logo

checkers-ai's Introduction

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

checkers-ai's People

Contributors

akshaydalavai avatar nikeshsraj10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kooryan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.