Skip to content

Implement timer at side decking state #67

@diangogav

Description

@diangogav

Description

Currently, if a team finishes side decking and the opposing team does not, the match can stall indefinitely, forcing players to manually exit the game. To prevent this behavior, we need to implement a timer that starts as soon as one team completes the side decking phase. If the opposing team fails to complete side decking within the time limit, they will lose the match.

Additionally, log messages should be printed when the timer starts and shortly before it ends, to inform players and assist in debugging.

Tasks

  • Implement a timer that starts once a team has completed side decking.
  • Print a message indicating that the side decking timer has started.
  • Print a warning message when the timer is about to expire.
  • Enforce a match loss for the team that does not complete side decking in time.

Acceptance Criteria

  • When one team finishes side decking, a timer starts.
  • A log message is printed: "Side decking timer started for opposing team."
  • A warning log is printed a few seconds before timeout: "Side decking timer is about to expire."
  • If the other team does not complete side decking within the time limit, they lose the match.
  • If both teams do not complete side decking, do nothing.
  • If both teams complete side decking before the timer expires, proceed to the next duel as normal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions