legal move options
Banerjee <[email protected]>
| Newsgroups | gmane.comp.gnu.chess.announce |
|---|---|
| Message-ID | <[email protected]> |
Hello group, My group has added extra code to enable standard text input for moving pieces instead of mouse-clicks. But here is the problem: There are three different functions involved in mouse-click as in xboard.c : 1)DragPieceBegin(int x, int y) 2)DragPieceMove(int x, int y) 3)DragPieceEnd(int x, int y) We are trying to figure out a way to simulate the functionalities of these functions, but we need to figure out a way to get around the second function. Also, the game will allow moves that are not legal, but giving the "xncp" option should enable regular chess game. Is there any other way to restrict moves to legal only and let the games reject illegal moves? Thanks Jay __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail