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

API method for retrieving game state #854

Open
bertrandom opened this issue Apr 11, 2024 · 1 comment
Open

API method for retrieving game state #854

bertrandom opened this issue Apr 11, 2024 · 1 comment
Labels
feedback 📣 User feedback

Comments

@bertrandom
Copy link

It'd be nice if there was an API method for retrieving the game state, in particular, whose turn it is.

e.g.

/api/game/:gameId

That returned the game state in JSON. Then folks could regularly poll this method (maybe once an hour?) to see if the player turn has changed and implement their own notifications.

@Thrillberg
Copy link
Owner

Hi @bertrandom ! 👋 Thanks for submitting this issue! I have absolutely nothing against such functionality and could possibly implement it myself if there were enough demand/interest in it. I'm not sure who else would make use of it at the moment. But if you want to implement, please feel free--I'd be happy to review any code you produce toward the effort!

@Thrillberg Thrillberg added the feedback 📣 User feedback label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback 📣 User feedback
Projects
None yet
Development

No branches or pull requests

2 participants