I3uckwheat / cards-of-carousal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: Czar leaving during selection phase crashes the game

I3uckwheat opened this issue · comments

Device used: N/A
Browser(s) used: N/A
Locally run or on official site: Production

Description

Expected Behavior

The game does not crash when the Czar leaves if they are selecting a winner when it's their turn. The existing round ends and a new Czar is selected.

Actual Behavior

The game crashes immediately when the Czar leaves.

Screen Shot/Screen Video Capture

(if applicable)

Replication Steps & Data

  1. Create a game with 2 or more players
  2. Play the game until the Czar needs to select a player
  3. Close the tab with the Czar selecting a winner
  4. Observe big red error

User Stories

  • As a player I would like to be able to continue the game if the Czar leaves during the selection phase so I can keep the laughs rolling

Acceptance Criteria

Criteria needed for this to work as intended in the user story.

  • Game does not crash
  • Game goes into a new selection phase, throwing out the cards the players have submitted.