thecommons-urbit / chess

Distribution repo for Urbit Chess app
Other
26 stars 8 forks source link

Online Indicator #130

Closed ashelkovnykov closed 6 months ago

ashelkovnykov commented 1 year ago

When live, timed games are being played, it would be nice to have an online indicator to let a user know that his opponent is present in the game: i.e. his opponent has %chess open and is looking at the board right now.

For a v0.1 version, I'm picturing a button that a user can click to send a "I'm ready" / "I'm not ready" status update to the opponents %chess app.

For a v1.0 version, I'm picturing adding this functionality to %kronos (or another agent). The Urbit chess frontend automatically pokes the agent every second with an "I'm ready" message, and if the server doesn't receive such a message for ~5 seconds, then it assumes the person is no longer ready / present. Meanwhile, the opponent can scry the opponent's frontend can scry the player's status from the agent every second.

ashelkovnykov commented 1 year ago

Possible that the %vitals agent will be useful.