Skip to content

feat: implement tournament-standard doubling cube support#81

Open
nodots wants to merge 1 commit intodevelopmentfrom
feature/doubling-cube-support
Open

feat: implement tournament-standard doubling cube support#81
nodots wants to merge 1 commit intodevelopmentfrom
feature/doubling-cube-support

Conversation

@nodots
Copy link
Owner

@nodots nodots commented Nov 27, 2025

Summary

  • Fix canOfferDouble() to respect cube ownership rules (only owner can re-double)
  • Cube value changes on acceptance, not on offer
  • acceptDouble() returns offering player to rolling state
  • Add comprehensive doubling tests (21 test cases)

Test plan

  • All 21 doubling tests pass
  • Build succeeds

Fixes nodots/nodots-backgammon#5

🤖 Generated with Claude Code

- Fix canOfferDouble() to respect cube ownership rules
- Only cube owner can re-double (or either player if no owner)
- Cube value changes on acceptance, not on offer
- acceptDouble() returns offering player to rolling state
- Add comprehensive doubling tests (21 test cases)

Fixes nodots/nodots-backgammon#5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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