Skip to main content
GameDev.net gamedev.net
🔒 Locked

Chess Game Engine

Started by barakat Nov 15, 2004 at 9:01 AM 0 replies 350+ views
Original Post
barakat
barakat
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 :)
balla_the_king
balla_the_king
- 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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.