This project is a 3D chess game variant called Raumschach, implemented using Rust with WebAssembly (wasm), HTML, CSS, and JavaScript. The game features three difficulty modes, move highlighting, move history tracking, captured pieces display, and evaluation of the game state. The chess AI utilizes the minimax algorithm with alpha-beta pruning for optimization. The user interface (UI) for the game is based on the one available in the following repository. However, all the game logic and AI functionality have been implemented in Rust.
Play the game at: https://mikej.space/chess-3D/
To set up and run the game, follow these steps:
- Clone the repository using the following command:
git clone https://github.com/WR104/chess-3D
- Build the WebAssembly code using wasm-pack by running the following command:
wasm-pack build
Ensure that you have wasm-pack installed at https://rustwasm.github.io/wasm-pack/installer/
- Change to the
www
directory using the following command:
cd www
- Start the development server by running the following command:
npm run start
Contributions to the project are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the project's GitHub repository.
This project is licensed under the MIT License. Feel free to modify and distribute