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

(Bug) overrideGameState() doesn't update move dispatchers #1178

Open
davjhan opened this issue Mar 24, 2024 · 0 comments
Open

(Bug) overrideGameState() doesn't update move dispatchers #1178

davjhan opened this issue Mar 24, 2024 · 0 comments

Comments

@davjhan
Copy link

davjhan commented Mar 24, 2024

I'm using overrideGameState() to load a game from a specific saved state for testing, loading etc. This is SPA client only game, so no state is stored outside of the browser.

Ideally this is as simple as:

client.overrideGameState(savedState)

However, internally this does not seem to call createDispatchers, because the client does not let me make a move that is only on a specific state. Insteead I get "ERROR: disallowed move: continue(my movecontinue`) is only on the phase I load not the intial phase.

This makes overrideGameState unusable if using phases.

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