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: add a way to create "half-open-ended" challenges #870

Open
Pikrass opened this issue Sep 27, 2024 · 2 comments
Open

API: add a way to create "half-open-ended" challenges #870

Pikrass opened this issue Sep 27, 2024 · 2 comments
Assignees

Comments

@Pikrass
Copy link

Pikrass commented Sep 27, 2024

The API allows us to create either a completely open-ended challenge, where the link needs to be followed by two players to start the game, or a completely defined challenge, where both players are known ahead of time.

I want to create a challenge link that is already accepted by one side. Same as when I click on "Play with a friend" on the Lishogi front page.

I thought I could do this by first creating an open-ended challenge, then immediately accept it with an OAuth2 token.
Unfortunately, this fails with a "Not found" error. I guess this endpoint only works for challenges that are explicitly targeted to the logged-in player.

Either the accept endpoint should work for open-ended challenges as well, or a new endpoint should be made to create a half-open challenge.

@ddugovic
Copy link

I know the PyChess community does the reverse (when a game seek is created, send a Discord webhook notification so players can discover that someone is seeking a game).

@WandererXII WandererXII self-assigned this Sep 28, 2024
@ddugovic
Copy link

ddugovic commented Oct 3, 2024

Similar upstream issue (still open at this time): lichess-org#15748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants