This project is a chess engine written in C++ and compiled to WebAssembly. It can be played online in your browser.
- Uses alpha-beta pruning as the main search algorithm
- Supports FEN notation
- Evaluates board positions using piece-square tables and material balance
- Plays both as white and black
To try it online, simply visit https://chess.excf.org and start playing.
To build from source, you'll need to use the Emscripten CMake toolchain. Here are the steps:
- Install the Emscripten SDK: https://emscripten.org/docs/getting_started/downloads.html
- Set up your environment by running
source /path/to/emsdk_env.sh - Clone the repository:
git clone https://github.com/exclusivefrog28/chessengine.git - Create a build directory and navigate into it:
mkdir build && cd build - Configure the build with CMake:
cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/emscripten.cmake .. - Build the project with
make
The project is licensed under the MIT License. See the LICENSE file for more details.