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

Start games automatically #491

Open
glbert-does opened this issue Mar 7, 2023 · 0 comments · May be fixed by #523
Open

Start games automatically #491

glbert-does opened this issue Mar 7, 2023 · 0 comments · May be fixed by #523
Assignees

Comments

@glbert-does
Copy link
Member

glbert-does commented Mar 7, 2023

look into using https://lichess.org/api#tag/Bulk-pairings/operation/bulkPairingCreate to create games and start clocks.

here is how i personally currently imagine it:

  • once a game is scheduled, both players need to confirm that it was scheduled correctly, maybe via a button on the site, or via chesster. maybe chesster should send a site link. if either player doesn't, they will have to still start the game manually.
  • if a game is rescheduled, players need to confirm again.
  • game starts a couple of minutes before or at the scheduled time, clock starts at the scheduled time or a couple of minutes later, definitely a couple of minutes after the game was created. both creating the game at the scheduled time and starting clocks at the scheduled time make some sense to me.
  • bulk pairings should create all the games that are supposed to start at a specified time. need to handle errors, especially when a token is not working, which makes all pairings fail according to the documentation.
  • can even set "noClaimWin", which would enforce one of our rules.
  • need to be careful about players creating their own challenge; definitely cannot create a game when the players already started one themselves, so would have to check for that first.

all of this is very low priority of course. but it would be quite fancy if we had something like this.

@glbert-does glbert-does self-assigned this Nov 1, 2023
@glbert-does glbert-does linked a pull request Nov 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant