Overview
Allow a host to start a Match, and re-route all players in the Lobby to the Match screen once the match starts.
AC:
Allow the host to press the "Start Match" button once the # players reaches the MIN_PLAYERS threshold
When the button is pressed, instruct Supabase to change the match.status to STARTING
Add a useEffect hook to the Matchmaking screen that listens to match.status in the dependency array. When the status changes to STARTING, re-route all players to the <Match /> screen.
Overview Allow a host to start a Match, and re-route all players in the Lobby to the Match screen once the match starts.
AC:
MIN_PLAYERS
thresholdmatch.status
toSTARTING
match.status
in the dependency array. When the status changes toSTARTING
, re-route all players to the<Match />
screen.