Chess

One of the early games I developed is a 2D chess game for two players on a single device, designed to run on Android. The game uses a custom algorithm I created to manage all aspects of gameplay, from legal moves to special states like check and checkmate.

Created In: 2019
Collaboration: Solo
Game Engine: Unity- C#

The core mechanics rely on two 2D grids—one for white pieces and one for black—each storing positional data. These grids are projected onto a third grid to calculate legal moves and identify empty spots dynamically.

  • Calculating check and checkmate by simulating all possible moves for every piece in the background whenever the king is in check (not the most efficient but functional).
  • Managing the king’s movement, factoring in not only empty spots but also potential threats from opponent pieces.
  • Restricting movement to only the pieces that can break the check when the king is in danger, ensuring realistic and strategic gameplay.

This project was a major step in my development journey, blending custom logic with strategic game design and problem-solving.