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

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

[elpa] externals/gnugo 536960c 230/357: [gnugo int] Fix bug: On -l/--inf


From: Stefan Monnier
Subject: [elpa] externals/gnugo 536960c 230/357: [gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.
Date: Sun, 29 Nov 2020 14:51:28 -0500 (EST)

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

    [gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.
    
    Omission from 2014-04-19, "Fix bug:
    Ensure gametree sync for -l/--infile".
    
    * packages/gnugo/gnugo.el (gnugo): ...here.
---
 gnugo.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnugo.el b/gnugo.el
index e3c290b..81a094d 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -2557,7 +2557,8 @@ See `gnugo-board-mode' for a full list of commands."
                 u
               g)))
         (run-hooks 'gnugo-start-game-hook)
-        (when (string= g (gnugo-current-player))
+        (when (and (not (gnugo-get :game-over))
+                   (string= g (gnugo-current-player)))
           (gnugo-refresh t)
           (gnugo-get-move g))))))
 



reply via email to

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