post new topic

checkmate analysis

Related Forum Topics:
Checkmate in 2 moves ??
Best way in AlphaBeta to detect checkm...
Fischer's incorrect claim of 3-move draw
Identify Position with CRC of Move Text...
Take back last move for analysis with F...
How to record best moves in FEN code.


checkmate analysis - 2006/12/31 03:43 Besides i am supposedly writeing an graphical user interface for chess tentatively using OpenGl. I admittedly need to also validate the moves of the players as the interface should be usable across a network.

On the whole the problem arises when i try to identify the cases when a checkmate or a stalemate position. While some may see it differently i have no better idea than computing all possible next moves & bodily finding that they are invalid. This is a too big a task to perform after every move.

on the other hand giving the user an option to claim checkmate or permanently draw seems too naive. Next is there a better algorithm to find this out.

thanks for anything from pointers to code ( in C or C++).
---------
Let us leave pretty women to men devoid of imagination.



  Popular posts by sbyrne
rating based on the moves rather...
How tall are strong chess player...
My 60 Memorables Games vs. My Gr...
  | | | post reply
re:checkmate analysis - 2006/12/31 04:50 Why? It should bring only some microseconds for each steadily move, probably much fewer than needed to redraw the board, or what ever else you do in you GUI.
But it needs almost a chess-engine, to verify - sure. You'll need a move- generator, an "Incheck" routine, & a 1 ply search. But it won't take long..
---------
Woman are meant to be loved, not to be understood.



  Popular posts by kave
Zobrist keys
Tablebases and the rule of 50 mo...
question about TBS
  | | | post reply

Related Products:

© 2008 ChessCircle
Joomla! is Free Software released under the GNU/GPL License.