emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gnugo b1f2856 183/357: [gnugo] Fix bug: Keep subproc in


From: Stefan Monnier
Subject: [elpa] externals/gnugo b1f2856 183/357: [gnugo] Fix bug: Keep subproc informed of forced PASS.
Date: Sun, 29 Nov 2020 14:51:17 -0500 (EST)

branch: externals/gnugo
commit b1f285600264dd9c9704fcfacf85a2d792e66f8a
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [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.
---
 NEWS     | 1 +
 gnugo.el | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/NEWS b/NEWS
index fef55f7..8a97a25 100644
--- a/NEWS
+++ b/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/gnugo.el b/gnugo.el
index 9d37bab..09c2c76 100644
--- a/gnugo.el
+++ b/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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]