DeepChessAI

BINUS International Intelligence System Final Project

Table of Contents

  1. Getting Started
  2. Usage

Getting Started

Installation

  1. Clone the repo
    git clone https://github.com/fauzanardh/DeepChessAI.git
  2. Install the Dependencies
    pip install -r requirements.txt

Usage

Self Play

First, you need to generate a new config file

from config import Config
Config().save_config("config-default.json")

After creating the config file, run the file run_do_all.py

python run_do_all.py

Supervised Learning

First, you will have to download PGN files and put them in the directory you set in the config file. You can download the PGN files from FICS.

Second, export the data to TFRecord files by using the run_exporter.py

python run_exporter.py

After you export the PGN files, you just need to run the run_optimize.py (Train the model)

python run_optimize.py

Evaluate only

If you only want to evaluate which one is the better model run the run_evaluate.py

python run_evaluate.py