diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-04-12 07:58:22 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-04-12 07:58:22 +0000 |
| commit | e66b028def9af45cc545c973255df42c9b90cde1 (patch) | |
| tree | b4d7bf33b4aabfee075ff211e3da12456fbeaf70 /chess-engine.el | |
| parent | cdba8a5aed3bd66e62f348a7064acece342bb68e (diff) | |
optimizations and bug fixes
Diffstat (limited to 'chess-engine.el')
| -rw-r--r-- | chess-engine.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chess-engine.el b/chess-engine.el index 9a97cef..afa80d8 100644 --- a/chess-engine.el +++ b/chess-engine.el @@ -64,8 +64,8 @@ (chess-engine-position (setq chess-engine-position (chess-ply-next-pos ply))))) -(defsubst chess-engine-convert-algebraic (move) - (or (chess-algebraic-to-ply (chess-engine-position nil) move) +(defsubst chess-engine-convert-algebraic (move &optional trust-check) + (or (chess-algebraic-to-ply (chess-engine-position nil) move trust-check) (ignore (message "Received invalid move string: %s" move)))) @@ -156,7 +156,7 @@ (when game (if (y-or-n-p "Your opponent offers a draw, accept? ") (progn - (chess-game-draw game) + (chess-game-end game :draw) (chess-engine-command nil 'accept) (chess-game-set-data game 'active nil)) (chess-engine-command nil 'decline)) @@ -200,7 +200,7 @@ (cond ((eq chess-engine-pending-offer 'draw) (message "Your draw offer was accepted") - (chess-game-draw game) + (chess-game-end game :draw) (chess-game-set-data game 'active nil)) ((eq chess-engine-pending-offer 'abort) |
