Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
James-Quigley opened this issue Mar 16, 2022 · 3 comments
Open
Labels
client enhancement New feature or request

Comments

@James-Quigley
Copy link
Collaborator

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 James-Quigley added enhancement New feature or request client labels Mar 16, 2022
@James-Quigley
Copy link
Collaborator Author

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

@James-Quigley James-Quigley changed the title Handle the shuffle event Handle the shuffle, pass, and forfeit events in the game.moves list Mar 16, 2022
@chuckdries
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants