ViciousFish / buzzwords

A browser based word strategy game featuring frictionless link-based multiplayer. Try it today!
https://buzzwords.gg
Apache License 2.0
49 stars 8 forks source link

Handle the shuffle, pass, and forfeit events in the game.moves list #87

Open James-Quigley opened 2 years ago

James-Quigley commented 2 years ago

In an effort to ensure there is always a valid move on the board, in the slim chance that there isn't a way to generate a valid word with the current board state, the server will shuffle all open tiles on the board. This event is saved into the moves list on the game object. The frontend will need to account for this. Likely it will error out if not handled

James-Quigley commented 2 years ago

Additionally should handle the pass and forfeit events in the game moves list as well

chuckdries commented 2 years ago

At the very least I'll ensure it all works, but I'd also like to toast and maybe show an indicator on the move in the moves list somewhere? I'll take a look.

Is there an easy way to force a shuffle or should I just edit a move in the db

chuckdries commented 2 years ago

Forfeit event is now handled, shows "resign" in the moves list