Skip to content

bug: fix reward calculation on edge cases #15

Description

@diiabblo

Description

Incorrect reward amounts calculated when user answers exactly at timeout.

Steps to Reproduce

  1. Start a game
  2. Answer final question right as timer hits 0
  3. Observe reward amount

Expected Behavior

Consistent reward calculation regardless of timing.

Actual Behavior

Sometimes shows 0 reward or double reward.

Possible Solution

Add timestamp validation and race condition protection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions