3D Chess

Jun 18, 2021
Coursework
{{ projectImage.title }}
{{ projectImage.title }}
{{ projectImage.title }}

Objective

A full implementation of the Raumschach 3D chess variant, with a fully functional AI. The game is fully playable in your browser.

Tools & Technologies

HTML, CSS, JavaScript, WebAssembly, C++

Media

Challenge

This project is a complete interactive game of the Raumschach variant of 3D Chess and was made as our ICS4U summative. Users may choose to play against an AI with 3 difficulty levels or with another player locally.

Features: 4 different game modes (PvP + 3 AI difficulties), UI to select pieces for pawn promotions, Highlights to show legal moves and the opponent's last move, Game history, Panel showing piece captures of each side, Game evaluation bar

The move logic, checkmate+stalemate detection and AI were all programmed in C++ and were compiled to WebAssembly using Emscripten so that it could be run on the browser. The visual interface of the game was made using vanilla JavaScript, HTML and CSS.

Our chess AI was made from scratch and uses the minimax algorithm with alpha-beta pruning for optimization.

Let's Chat!

Last Modified: 2024-10-03