#Get Swiss pairings in advance

11 messages · Page 1 of 1 (latest)

balmy ginkgo
#

I’m using Lichess API to make Swiss tournaments on lichess, the thing is client is on another UI and I would like to present pairings to the client in advance before a Swiss round. I tried looking into Swiss info but there is no pairings. Not sure if this is not supported due to some rate limit but yea if this is possible let me know

gleaming cosmos
#

Pairings aren't visible on Lichess in advance either, no? Iirc they only get computed when the round stars, to take pauses and late joins into account.

balmy ginkgo
#

yeah true is there way to get pairings after they are computed like not super advanced between the round starting interval I guess. I think my wording is wrong but basically I want to get pairings as soon as they are computed

#

The pairings is more for spectators not the players, players will see the pairings on Lichess but yea

gleaming cosmos
#

Honestly, I'm not super familiar with this part, but I would assume they are computed when the round starts, not when the pause before the round or something starts. Or can you already see the pairings on Lichess before the games start?

#

Though you can set your own pairings

balmy ginkgo
#

I think I didn’t say my use case properly this want I meant

feral cloak
#

Seems the TRF-format (exportable via Lichess API) could be used 🤔
Here's a ongoing swiss https://lichess.org/swiss/DfbSFem6
And the trf, https://lichess.org/swiss/DfbSFem6.trf,

...
001    2       doncasti                         2176                             1.5              H         -    17 b 1     8 b Z
...
001    8       romeopups                        2015                             3.0         26 b 1    37 w 1     7 b 1     2 w Z
...

One can figure out that romeopups plays against doncasti (in some column they have a Z and they have eachothers id:s, 2 and 8)

#

So one would need to do some parsing 😅

Maybe it's also possible to query participants of a tournament,
and then check via games API if they are playing eachother...

balmy ginkgo
#

Yea thanks good idea I can take a look in that but still it be cool to have Lichess have API endpoint for pairings cuz if it’s really large tournament things might get messy with rate limits