Giter Site home page Giter Site logo

gunshippenguin / shallow-blue Goto Github PK

View Code? Open in Web Editor NEW
66.0 8.0 12.0 1.03 MB

UCI Chess engine written in C++11

License: MIT License

Makefile 0.19% C++ 99.31% Python 0.39% C 0.02% Shell 0.10%
chess-engine artificial-intelligence game-theory bitboards principal-variation-search minimax

shallow-blue's Introduction

Shallow Blue

(not Deep Blue)

A UCI chess engine written in C++11

Features

Building

To build on *nix:

make

You can build with debugging symbols and no optimizations using:

make debug

If you have Mingw-w64 installed, you can cross compile for Windows on Linux with:

./build_windows.sh

Tests

Catch unit tests are located in the test directory.

To build and run the unit tests, use:

make test
./shallowbluetest

To build and run the unit tests, skipping perft tests (these take a while to run), use:

make test
./shallowbluetest exclude:[perft]

Documentation

Shallow Blue's code is extensively documented with Doxygen.

To generate HTML documentation use:

doxygen

Opening Books

Shallow Blue supports PolyGlot formatted (.bin) opening books. To use an opening book, the OwnBook and BookPath UCI options must be set to true and the path to the opening book file respectively.

These options can be set from your chess GUI or the UCI interface as follows:

setoption name OwnBook value true
setoption name BookPath value /path/to/book.bin

Implemented non UCI Commands

These commands can be useful for debugging.

  • perft <depth>
    • Prints the perft value for each move on the current board to the specified depth
  • printboard
    • Pretty prints the current state of the game board
  • printmoves
    • Prints all legal moves for the currently active player

Future Improvements

  • Staged move generation
  • Null move pruning
  • Late move reductions

License

MIT © Rhys Rustad-Elliott

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.