Skip to content

feat: add luck analysis types#49

Open
nodots wants to merge 10 commits intofeat/4.6.4-RCfrom
feature/246-luck-calculation
Open

feat: add luck analysis types#49
nodots wants to merge 10 commits intofeat/4.6.4-RCfrom
feature/246-luck-calculation

Conversation

@nodots
Copy link
Owner

@nodots nodots commented Jan 4, 2026

Summary

  • Add types for luck calculation feature (RollLuck, PlayerLuckSummary, GameLuckAnalysis)
  • Add LuckThresholds and LuckClassification types
  • Add DEFAULT_LUCK_THRESHOLDS constant

Test plan

  • TypeScript compilation passes
  • Types exported correctly from index.ts

Closes part of nodots/nodots-backgammon#246

🤖 Generated with Claude Code

nodots and others added 10 commits December 14, 2025 14:54
- Add stateVersion field to BaseGame for equality checks
- Add JSDoc documenting Set/Array serialization contract for moves

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update package.json
- History type updates

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add BackgammonGameOutcome type: 'normal' | 'gammon' | 'backgammon'
- Add GAME_OUTCOME_POINTS constant with scoring multipliers
- Add BackgammonGameCompletionDetails and BackgammonGameCompletedEvent interfaces
- Update BackgammonGameCompleted to include outcome, basePoints, finalScore

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Import MatchInfo and add matchInfo field to BaseGame and GameClass
- Add BackgammonWinType type ('simple' | 'gammon' | 'backgammon')
- Add winType and pointsWon fields to BackgammonGameCompleted

Part of issue #246 - Gap Analysis implementation

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ement

feat: add Crawford/Jacoby rule types and game completion scoring
- Add MatchEquityTable interface for MET data structure
- Add MatchScoreContext for tracking match state
- Add CubeDecisionAnalysis for cube decision results
- Add GammonValues for gammon/backgammon value calculations

Part of issue #246 - Gap Analysis implementation (Phase 2: Match Equity)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add types for luck calculation feature:
- RollLuck: luck data for a single roll
- PlayerLuckSummary: per-player luck totals
- GameLuckAnalysis: complete game analysis
- LuckThresholds: joker/anti-joker thresholds
- LuckClassification: joker | anti-joker | normal
- DEFAULT_LUCK_THRESHOLDS constant

Part of #246

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

Co-Authored-By: Claude Opus 4.5 <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