This project is a chess engine written in C++ and compiled to WebAssembly. It can be played online in your browser, making it a convenient and accessible option for chess enthusiasts everywhere.
- 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://exclusivefrog28.github.io and start playing. It's that easy!
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.