[ggo-discussion] Re: that capture counting bug
- From: Peter Strempel <zotan@xxxxxx>
- To: ggo-discussion@xxxxxxxxxxxxx
- Date: Thu, 24 Apr 2003 09:20:57 +0200
>When observing games, the number of prisoners held by each player is not
>displayed correctly.
Yes, stupid bug.
This happens when you move backward in the game, and then new moves are
played and added "invisible". Then the current captures of the move you are
currently navigating are used for calculating the new captures of the added
move.
So if you are viewing move 20, and move 150 is made, move 150 will have the
captures of move 20 (plus the captures made in move 150, if any), and all
following moves after 150 will use the wrong captures base. When
calculating the captures of a move, I need to copy the captures of the last
move (149), but I accidently copy the captures of the current move (20).
If you never move backwards in a game, the problem would not occur. Also,
Refresh reloads the correct prisoner number again (reads the info from the
server). For the following moves the captures are correct again, until you
start moving backwards.
Should be easy to fix. Thanks for the hint. It was mentioned, but I forgot ;(
Peter
- References:
- [ggo-discussion] Multiple games support
- From: Peter Strempel
- [ggo-discussion] that capture counting bug
- From: Michael Camacho
Other related posts:
- » [ggo-discussion] that capture counting bug
- » [ggo-discussion] Re: that capture counting bug
- » [ggo-discussion] Re: that capture counting bug
- [ggo-discussion] Multiple games support
- From: Peter Strempel
- [ggo-discussion] that capture counting bug
- From: Michael Camacho