Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18EU] Leading bidder is removed from auction early #10101

Merged
merged 7 commits into from
Jan 7, 2024

Conversation

andrewzwicky
Copy link
Collaborator

Before clicking "Create"

  • Branch is derived from the latest master
  • Code passes linter with docker compose exec rack rubocop -a
  • Tests pass cleanly with docker compose exec rack rake

Implementation Notes

  • Explanation of Change

    While investigating [18EU] "undefined method `+' for nil" when passing on a minor with no bids #9945 I saw that when a bidder has bid their maximum cash, they are removed from the auction as "can't afford" (because they would not be allowed to bid again). This is not correct in the case where they had bid all their remaining money, and all other players want to pass, as the second place bidder would win the auction. This change leaves them in the auction. If someone else does overbid them, then they are properly removed from the auction.

    I tested the following scenarios:

    • Everyone passes, maxed out bidder wins ✔
    • Someone outbids later, maxed out bidder is removed ✔

    I imported all active 18EU games and validated them, so I don't think this requires pins.

  • Screenshots

    Wrong
    pass_removes
    Correct
    pass_leaves
  • Any Assumptions / Hacks

@andrewzwicky andrewzwicky changed the title [18EU] Winning bidder is removed from the auction prematurely [18EU] Leading bidder is removed from auction early Jan 5, 2024
@michaeljb michaeljb merged commit be4c400 into tobymao:master Jan 7, 2024
1 check passed
@andrewzwicky andrewzwicky deleted the 9945 branch January 9, 2024 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants