summaryrefslogtreecommitdiff
path: root/chess-ics.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-12 11:09:40 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-12 11:09:40 +0000
commit99d0a8277f275c1ffa48b948723a79df4d296e22 (patch)
tree21f1e547423986d20b951d16259309c3fb7326d0 /chess-ics.el
parenta63c0563b8857186ec3d7efe9ce5fa1add332647 (diff)
*** no comment ***
Diffstat (limited to 'chess-ics.el')
-rw-r--r--chess-ics.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/chess-ics.el b/chess-ics.el
index d0a3042..510fd69 100644
--- a/chess-ics.el
+++ b/chess-ics.el
@@ -131,14 +131,13 @@ who is black."
(assert game)
(if (and (chess-game-data game 'active)
(> (chess-game-index game) 0))
- (when (and (cadr info)
- (eq (chess-pos-side-to-move (car info))
- (chess-game-data game 'my-color)))
- (chess-engine-do-move
- (chess-algebraic-to-ply
- (chess-ply-pos (car (last (chess-game-plies game))))
- (cadr info) t))
- (assert (equal (car info) (chess-engine-position nil))))
+ (if (and (cadr info)
+ (eq (chess-pos-side-to-move (car info))
+ (chess-game-data game 'my-color)))
+ (chess-engine-do-move
+ (chess-algebraic-to-ply
+ (chess-ply-pos (car (last (chess-game-plies game))))
+ (cadr info) t)))
(let ((chess-game-inhibit-events t) plies)
(chess-game-set-data game 'my-color (string= (nth 2 info)
chess-ics-handle))