summaryrefslogtreecommitdiff
path: root/chess-standard.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-07 08:44:00 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-07 08:44:00 +0000
commit2ef00c4beddb77e546cdc212cc502c5a9a4bba6c (patch)
treef20a250ce3e162fd5580696528d7b8251cdcfcf4 /chess-standard.el
parentb148d84be1c3bd781c4fd11dd0a928fbeeda28fd (diff)
Simplified the event model, and removed session objects. Now
everything just revolves around a game. Gnuchess is now playable to the end, except don't make moves that leave your king in check! The engine still doesn't check for this yet.
Diffstat (limited to 'chess-standard.el')
-rw-r--r--chess-standard.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/chess-standard.el b/chess-standard.el
index 68c207c..165cdce 100644
--- a/chess-standard.el
+++ b/chess-standard.el
@@ -73,6 +73,8 @@ indices which indicate where a piece may have moved from."
(< piece ?a)) -1 1))
(c (= bias -1))
p pos candidates)
+ ;; jww (2002-04-07): Don't return candidates that leave the king
+ ;; in check.
(cond
;; if the piece is `t', it means to find the candidates resulting
;; from any piece movement. This is useful for testing whether a