Open gcao opened 2 years ago
Create invitation (private invitation with a temporary password or public invitation with no temporary password) My color (black, white, random) Handicaps Board size Komis
Accept invitation and start game
Reject invitation (private invitation only)
Cancel invitation
Play
Resign
Request to count
Accept counting request
Reject counting request
Support timed game Pre-allocated time Pre-allocated time + extra time per move
Request to pause timing Accept pausing request Reject pausing request Cancel pausing request
Request to resume timing Accept resuming request Reject resuming request Cancel resuming request
Support predicting moves
Support multiple predicting moves
Hide the call AI button (it's not possible to prevent calling AI by opening another window and reproducing the game and calling AI)
Each game should be given an unique ID
Game is stored on the file system (path_to_games/id.json) and cached in memory
Past game can be loaded from the file system.
When a human vs human game is created, a master password is created for myself and a temporary password is created for the invitee.
When the invitee accepts the invitation, a new password is assigned and stored in the invitee's browser storage.
When either player plays a move or passes or resigns, the password must be sent along.