You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add element under Difficulty settings. Something like: "List Publicly?: [Yes/No]"
Add a table on front page which polls for games with is_public:true
@rbtying Thoughts on how best to pull public games from storage? With the current interfaces doesn't seem straightforward but might be missing something.
Steps 1-4 makes sense to me, though I'd consider using an enumeration (implementation detail) rather than a boolean
If you look at the implementation of the state-dump endpoint you'll see that there's actually already a (hidden) endpoint that enumerates all of the games that you can use for inspiration.
So, we probably need to add:
a new endpoint which returns the public rooms as JSON (similar to the current /stats endpoint)
some frontend code which polls the endpoint and makes the games available
If we wanted to be extra fancy, we could send the IsPublicSet=true message to all clients, which could then immediately poll for the available public games... but I'm not sure this is valuable over a button to refresh the list immediately?
When you create a game, you could mark the room as "public", so that it shows up on a listing prior to joining the room.
The text was updated successfully, but these errors were encountered: