BBO Discussion Forums: New bug in handviewer code - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

New bug in handviewer code

#1 User is offline   smerriman 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,798
  • Joined: 2014-March-15
  • Gender:Male

Posted 2022-August-12, 17:58

It looks like the old 1-character bug has been fixed - yay :)

Unfortunately, an extra line of code was added at the same time which is causing more regular issues.

Here's a silly hand diagram demonstrating the problem clearly, though it actually pops up on nearly every hand.



Click through to after the lead to trick 2 and click GIB to see missing results for the T, 9, and 5.

Specifically, any time two cards that weren't originally equals now are due to the intermediate cards having been played on earlier tricks, the lower cards never show a double dummy score.

This is due to a new line of code which been added (wasn't there last time I checked) - the long line with the comment here:
Spoiler


The server request only returns scores for cards that really aren't equals (SK and S7), with this loop in the handviewer code meant to apply the same score to the remaining equals. But the commented line specifically tests if the next card was played by another hand on an earlier trick, and stops adding scores.

It's only meant to stop if the card hasn't been played, or was played by another hand to the *same* trick, which is what the later inThisTrick part does. So that line of code shouldn't be there.
0

#2 User is offline   smerriman 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,798
  • Joined: 2014-March-15
  • Gender:Male

Posted 2023-January-09, 15:02

This is still broken. Saw a streamer looking at double dummy results and getting very confused because of this the other day.
0

#3 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,432
  • Joined: 2004-August-21
  • Gender:Male

Posted 2023-February-10, 14:54

The line you refer to was supposedly part of this fix for this earlier problem https://www.bridgeba...st__p__1013211. We're looking into it.

We originally made the change from < to <= that you suggested, but that didn't fix all the problems, so this was done later and we thought it was the complete fix.

#4 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,432
  • Joined: 2004-August-21
  • Gender:Male

Posted 2023-February-14, 11:43

The problem wasn't related to that added line.

I believe we've fixed it.

#5 User is online   pescetom 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 7,396
  • Joined: 2014-February-18
  • Gender:Male
  • Location:Italy

Posted 2023-February-14, 11:54

View Postbarmar, on 2023-February-14, 11:43, said:

The problem wasn't related to that added line.

I believe we've fixed it.


Maybe you could restore the tricks-enabled version of Dealer while you have your hands dirty? ;)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users