Chess Game Engine
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 :)
- 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
- 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
Popular Topics
Advertisement