Chess Engine

Chess Engine Used AI

2 devlogs
1h 35m
Created by SM

This is a basic chess engine featuring move validation, random legal moves for the computer opponent, and handling for castling and pawn promotion. It also includes detection for checkmate and stalemate.

Using chess-api.com, I implemented an option to play against Stockfish, which is significantly smarter than the random legal moves option.

Timeline

Noticed that I built something similar to this in the past, so I just used the similar algorithm for move validation, checkmate/stalemate detection, turn identifier, and chess-api.com integration.

Update attachment

Made the chess board with proper piece placement & moveable pieces. I added move validation for only pawn, king, and bishop (more to come soon).

I also added a simple thing where the last square the piece you moved will be yellow (not fully implemented yet).

Finally, I added a turn identifier (upper middle), it is yet to be properly implemented.

Update attachment