From 2ef00c4beddb77e546cdc212cc502c5a9a4bba6c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 7 Apr 2002 08:44:00 +0000 Subject: 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. --- chess-standard.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chess-standard.el') 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 -- cgit v1.2.3