bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Odd interaction between end game and matches


From: Russ Allbery
Subject: Re: [Bug-gnubg] Odd interaction between end game and matches
Date: Sat, 22 Mar 2014 18:41:59 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Michael Petch <address@hidden> writes:

> End game could be modified I guess, but "End Game" does go to the end of
> the game (literally). Since a person uses it in an automated way, I
> think some people want to review what the computer did before going to
> the next. Usually when I use end game I am curious how it unfolds,
> however I can see the argument of changing the behaviour.

Ah, yes, that part makes sense.  What I was missing was:

> However, with that being said it acts the same way as GNUBG behaves when
> the option "settings/game tab/start new games immediately" is UNchecked.
> The game isn't frozen. You should be able to click the area in the mid
> board where the dice usually are and it should start the next game. If
> clicking the area where the dice are rolled (on the right side of the
> board) doesn't work then there is another bug - although it seems to
> work here.

...this part.  Thank you!  I'll let the bug reporter know.  That does also
work for me; I just hadn't thought to try it.

There is one oddity that I can reproduce in the text console, although not
in the GUI.  If I end the game with end game, it seems to stop at the end
of the game (requiring new game) if the player wins, but if gnubg wins, it
automatically advances to the next game.  This results in the confusing
"abandon this match" prompt if you run new game again, since the game has
already been started.

I also got a somewhat weird result once while testing this on the console.
Notice the weird "gnubg wins a (null)" in the message after the end of the
match.

(Game over) gnubg rolls 3, eagle rolls 5.
 GNU Backgammon  Position ID: 4HPwATDgc/ABMA
                 Match ID   : 8InuAGAAMAAE
 +13-14-15-16-17-18------19-20-21-22-23-24-+     O: gnubg
 | X           O    |   | O              X |     6 points
 | X           O    |   | O              X |     
 | X           O    |   | O                |     
 | X                |   | O                |     
 | X                |   | O                |    
v|                  |BAR|                  |     7 point match (Cube: 1)
 | O                |   | X                |    
 | O                |   | X                |     
 | O           X    |   | X                |     
 | O           X    |   | X              O |     Rolled 35
 | O           X    |   | X              O |     6 points
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     X: eagle

 GNU Backgammon  Position ID: 4HPwATDgc/ABMA
                 Match ID   : 8InuAGAAMAAE
 +13-14-15-16-17-18------19-20-21-22-23-24-+     O: gnubg
 | X           O    |   | O              X |     6 points
 | X           O    |   | O              X |     
 | X           O    |   | O                |     
 | X                |   | O                |     
 | X                |   | O                |    
v|                  |BAR|                  |     7 point match (Cube: 1)
 | O                |   | X                |    
 | O                |   | X                |     
 | O           X    |   | X                |     
 | O           X    |   | X              O |     Rolled 35
 | O           X    |   | X              O |     6 points
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     X: eagle

 GNU Backgammon  Position ID: 4HPwATDgc/ABMA
                 Match ID   : 8InuAGAAMAAE
 +13-14-15-16-17-18------19-20-21-22-23-24-+     O: gnubg
 | X           O    |   | O              X |     6 points
 | X           O    |   | O              X |     
 | X           O    |   | O                |     
 | X                |   | O                |     
 | X                |   | O                |    
v|                  |BAR|                  |     7 point match (Cube: 1)
 | O                |   | X                |    
 | O                |   | X                |     
 | O           X    |   | X                |     
 | O           X    |   | X              O |     Rolled 35
 | O           X    |   | X              O |     6 points
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     X: eagle

(eagle) end game
play
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
(eagle) play                                                                   
End Game done.                                                                 
gnubg wins 3 points
(Game over)  GNU Backgammon  Position ID: AwAA+KYpAEwAAA
                 Match ID   : 8APgAJAAMAAE
 +13-14-15-16-17-18------19-20-21-22-23-24-+     O: gnubg
 |                  |   |    X     X     O | OOO 9 points
 |                  |   |    X           O | OOO 
 |                  |   |                  | OOO 
 |                  |   |                  | OO  
 |                  |   |                  | OO 
v|                  |BAR|                  |     7 point match (Cube: 1)
 |                  |   |                X |    
 |                  |   |                X |     
 |                  |   |                X |     
 |                  |   |    X        X  X |     On roll
 |             X  X |   |    X  X     X  X |     6 points
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     X: eagle

gnubg wins a (null) and 3 points.
The score (after 6 games) is: gnubg 9, eagle 6 (match to 7 points).
gnubg has won the match.
 GNU Backgammon  Position ID: AwAA+KYpAEwAAA
                 Match ID   : cAPgAJAAMAAE
 +13-14-15-16-17-18------19-20-21-22-23-24-+     O: gnubg
 |                  |   |    X     X     O | OOO 9 points
 |                  |   |    X           O | OOO 
 |                  |   |                  | OOO 
 |                  |   |                  | OO  
 |                  |   |                  | OO 
v|                  |BAR|                  |     7 point match (Cube: 1)
 |                  |   |                X |    
 |                  |   |                X |     
 |                  |   |                X |     
 |                  |   |    X        X  X |     On roll
 |             X  X |   |    X  X     X  X |     6 points
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     X: eagle

-- 
Russ Allbery (address@hidden)              <http://www.eyrie.org/~eagle/>



reply via email to

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