Chess Game Engine

Started by
0 comments, last by balla_the_king 19 years, 5 months ago
Hi all; i am developing my own chess game engine ... and it is now in its final ..touches... and i am stuck ... i want to make a good algorithm to check if the king is dead... anyone got any ideas ?? thanks in advance :)
Advertisement
- Generate possible moves

- for each move
-----do the move
-----is the king not in check?
--------- return not checkmate
-----undo move

- return king is in checkmate

This topic is closed to new replies.

Advertisement