Skip to content

Base recycle penalty on dealt draw mode - #29

Merged
austin-smith merged 1 commit into
mainfrom
recycle-penalty-dealt-mode
Jul 5, 2026
Merged

austin-smith merged 1 commit into
mainfrom
recycle-penalty-dealt-mode

Conversation

@austin-smith

@austin-smith austin-smith commented Jul 4, 2026

Copy link
Copy Markdown
Owner

The draw-one recycle penalty checked the live stockDrawCount, while the time bonus and statistics use scoringDrawCount (frozen at deal/redeal). Switching draw modes mid-game let the two disagree — e.g. toggling to 3-card draw right before each recycle dodged the −100 penalty while still playing (and being scored as) a 1-card draw game.

The penalty now keys off scoringDrawCount so all scoring rules agree on the dealt mode.

  • recycleWaste() checks scoringDrawCount instead of stockDrawCount
  • scoringDrawCount exposed as private(set) (matches stockDrawCount)
  • regression tests for mid-game switches in both directions

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@austin-smith austin-smith changed the title base recycle penalty on dealt draw mode Base recycle penalty on dealt draw mode Jul 4, 2026
@austin-smith
austin-smith marked this pull request as ready for review July 5, 2026 05:14
@cursor

cursor Bot commented Jul 5, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@austin-smith
austin-smith merged commit dc2345f into main Jul 5, 2026
2 checks passed
@austin-smith
austin-smith deleted the recycle-penalty-dealt-mode branch July 5, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant