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

Some way for clients to know which moves are legal right now #772

Open
jkomoros opened this issue Jul 30, 2020 · 0 comments
Open

Some way for clients to know which moves are legal right now #772

jkomoros opened this issue Jul 30, 2020 · 0 comments

Comments

@jkomoros
Copy link
Owner

jkomoros commented Jul 30, 2020

Clients sometimes want to render buttons only if a move is currently legal right now in the game state. Sometimes they want to render the button if SOMEONE can currently run it, even if this user can't.

There's no good way to do that right now. Presumably it's something that ships down, for every move, whether it's legal right now if you pass this playerIndex, and also if you pass AdminPlayerIndex. The client can then decide to hide move buttons if no one, not even admin, can do it right now. And you'd only ship it down for a state bundle that is at the end of a run, not in the middle of animations.

... This could get expensive. #761 could start being way more important.

See also #768

@jkomoros jkomoros changed the title Some way for client to know which moves are legal Some way for clients to know which moves are legal right now Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant