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.
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
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.
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.