diff options
Diffstat (limited to 'chess-gnuchess.el')
| -rw-r--r-- | chess-gnuchess.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chess-gnuchess.el b/chess-gnuchess.el index 4d17d83..2950d86 100644 --- a/chess-gnuchess.el +++ b/chess-gnuchess.el @@ -92,6 +92,12 @@ (and (chess-engine-game nil) (chess-engine-set-start-position nil))) + ((eq event 'undo) + (when (chess-engine-game nil) + (dotimes (i (car args)) + (chess-engine-send nil "undo\n")) + (chess-game-undo (chess-engine-game nil) (car args)))) + ((eq event 'move) (chess-engine-send nil (concat (chess-ply-to-algebraic (car args)) "\n")) |
