summaryrefslogtreecommitdiff
path: root/chess-game.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-13 08:58:47 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-13 08:58:47 +0000
commit53db61f897996d73ecef4f4d0b8dda44f05f14cf (patch)
treecbdba16932bb64d4f8b0775e71a73c50d4c104ca /chess-game.el
parent2725f734a7cc15d27bfebeac3e986ff6af31d97b (diff)
added support for highlighting legal plies
Diffstat (limited to 'chess-game.el')
-rw-r--r--chess-game.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/chess-game.el b/chess-game.el
index cae650f..3214eb2 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -207,8 +207,7 @@ progress (nil), if it is drawn, resigned, mate, etc."
(position (chess-ply-pos ply)))
(if (chess-ply-final-p current-ply)
(error "Cannot add moves to a completed game"))
- (unless (equal position (chess-ply-pos current-ply))
- (error "Positions do not match"))
+ (assert (equal position (chess-ply-pos current-ply)))
(chess-ply-set-changes current-ply changes)
(chess-game-add-ply game (chess-ply-create
(chess-ply-next-pos current-ply)))