[4.2] Fix DiceRoll Success Counting Bug #16

Closed
opened 2026-03-13 11:26:11 +01:00 by shahondin1624 · 0 comments

User Story

As a developer, I want DiceRoll.roll() to count successes from the new roll, not the stale result list.

Acceptance Criteria

  • Fix Dice.ktnumberOfSuccesses must be computed from newly rolled values
  • Unit test verifying correct success count after .roll()

Notes

Bug in lib/functions/Dice.kt. The numberOfSuccesses is computed from a stale result list rather than the freshly rolled values. Foundation-phase fix.

## User Story **As a** developer, **I want** `DiceRoll.roll()` to count successes from the new roll, not the stale result list. ## Acceptance Criteria - [ ] Fix `Dice.kt` — `numberOfSuccesses` must be computed from newly rolled values - [ ] Unit test verifying correct success count after `.roll()` ## Notes Bug in `lib/functions/Dice.kt`. The `numberOfSuccesses` is computed from a stale result list rather than the freshly rolled values. Foundation-phase fix.
shahondin1624 added this to the Phase 1: Foundation milestone 2026-03-13 11:26:11 +01:00
shahondin1624 added the epic:dice-rollingpriority:must-have labels 2026-03-13 11:28:15 +01:00
Sign in to join this conversation.