Giter Site home page Giter Site logo

minichess's Introduction

MiniChess Project

Authors: Adrien Jayat

A chess game in C++ with a colorful CLI.

Implements all the rules defined by the Internal Chess Federation.

Get Started

This project is using two submodules:

First, clone the project and its submodules:

git clone https://gitlab.unistra.fr/jayat/minichess-project
cd minichess-project
git submodule init && git submodule update

Dependencies

Install make, gcc, doxygen and graphviz with your package manager :

Ubuntu

sudo apt update
sudo apt install make gcc doxygen graphviz

Arch Linux

sudo pacman -Syu
sudo pacman -S make gcc doxygen graphviz

Build

Windows

Install MinGW, CMake and make with Chocolatey, then run the following command in the project root directory:

cmake . -G "MinGW Makefiles"

Linux

cmake . -G "Unix Makefiles"

Then, run make to build the project.

To use the Stockfish engine, you need to build it with the following command:

cd Stockfish/src
make -j profile-build

You can also run make docs to generate the documentation.

Preview it with firefox docs/html/index.html for instance.

How to use

After building the project, you can run the ./echecs executable to start the program.

Options

The program accepts the following options:

Option Description
--engine Black are played by the Stockfish engine.

Tests

To test the program, you can run the test-level.sh script in the tests directory. For example, to test the level 1, run the following command:

cd tests && bash test-level.sh 1 ../echecs

minichess's People

Contributors

ajayat avatar

Stargazers

 avatar

Watchers

 avatar

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.