WithComment / scrabble

3 stars 1 forks source link

End turn logic #43

Open WithComment opened 3 months ago

WithComment commented 3 months ago

end-turn -> contest-phase -> confirm-play logic needs some kind of overhaul or new use case. Basically it should flow like this: 1) User 1 clicks on the End Turn button 2) Backend broadcasts a message to all players telling them that it is Contest/Don't Contest phase 3) Players all either click Contest or Don't Contest. 4a) if a Player clicks Contest, resolve contest ( + Confirm Play maybe?) and broadcast to all players that contest is over, its result, whose turn it is now etc 4b) if everyone clicks Don't Contest, resolve Confirm Play and broadcast message saying whose turn it is

WithComment commented 3 months ago

also, EndTurnInputData no longer need to get list of words as it's included in the Play