[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 01/01: [gnugo] Fix bug: Keep subproc informed of forced PASS.
From: |
Thien-Thi Nguyen |
Subject: |
[elpa] 01/01: [gnugo] Fix bug: Keep subproc informed of forced PASS. |
Date: |
Mon, 14 Apr 2014 08:23:51 +0000 |
ttn pushed a commit to branch master
in repository elpa.
commit 067a42e03fbaaadd3a42b046468d784b4849acf0
Author: Thien-Thi Nguyen <address@hidden>
Date: Mon Apr 14 10:28:03 2014 +0200
[gnugo] Fix bug: Keep subproc informed of forced PASS.
* packages/gnugo/gnugo.el (gnugo-display-final-score):
For forced PASS moves, call ‘gnugo--play-stone’, too.
---
packages/gnugo/NEWS | 1 +
packages/gnugo/gnugo.el | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/packages/gnugo/NEWS b/packages/gnugo/NEWS
index fef55f7..8a97a25 100644
--- a/packages/gnugo/NEWS
+++ b/packages/gnugo/NEWS
@@ -14,6 +14,7 @@ NB: "RCS: X..Y " means that the particular release includes
- display "resign" as "resign" in move history (amazing!)
- avoid clobbering SGF property ‘EV’ on resignation
- follow main line in subtrees on read
+ - for ‘F’ forced PASS moves, keep subproc informed as well
- dropped command: ‘t’ (gnugo-toggle-dead-group)
- PASS for SZ <= 19 normalized to "" on read, written as ""
- ‘=’ also displays move number of the stone (if any) at that position
diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index 9d37bab..09c2c76 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/gnugo.el
@@ -2011,6 +2011,10 @@ Also, add the `:RE' SGF property to the root node of the
game tree."
(message "Playing PASS for %s ..."
(gnugo-get (if userp :user-color :gnugo-color)))
(sit-for 1)
+ (gnugo--play-stone (gnugo-get (if userp
+ :user-color
+ :gnugo-color))
+ "PASS")
(gnugo-push-move userp "PASS")))
(unless (pass t)
(pass nil)))