summaryrefslogtreecommitdiff
path: root/chess.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-02 08:30:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-02 08:30:46 +0000
commitf4e9c77bc700222590ada4799c619152354244f2 (patch)
tree1c7d748f0a69f4d80afed3872d44dc37518ef8f2 /chess.el
parent682348e8a4a0267bc7a512e4f684f9a50fdff5b1 (diff)
Coded engines as a separate library. Still work to be done here.
Diffstat (limited to 'chess.el')
-rw-r--r--chess.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/chess.el b/chess.el
index 7d8bedb..31e0bd3 100644
--- a/chess.el
+++ b/chess.el
@@ -134,7 +134,11 @@ a0 243
(ignore
(let ((color (not (chess-session-data session 'my-color))))
(message "You are now playing %s" (if color "White" "Black"))
- (chess-session-set-data session 'my-color (not color)))))))
+ (chess-session-set-data session 'my-color (not color)))))
+
+ ((eq event 'move)
+ (chess-game-move (chess-session-data session 'current-game)
+ (car args)))))
(aset chess-puzzle-locations 3 puzzle-engine)))))))
(provide 'chess)