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

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

[elpa] 04/13: [gnugo int] Fix bug: On -l/--infile, inhibit first move if


From: Thien-Thi Nguyen
Subject: [elpa] 04/13: [gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.
Date: Mon, 21 Apr 2014 21:32:08 +0000

ttn pushed a commit to branch master
in repository elpa.

commit 80d236677170a00e7dd493fc5d73566b5a8656ea
Author: Thien-Thi Nguyen <address@hidden>
Date:   Sun Apr 20 17:50:20 2014 +0200

    [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.
---
 packages/gnugo/gnugo.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index e3c290b..81a094d 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/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]