Skip to content

Commit

Permalink
update ongoing games delay strategy
Browse files Browse the repository at this point in the history
From delay by moves to delay by time
  • Loading branch information
kraktus committed Nov 10, 2023
1 parent a56f7b8 commit bfa27df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/specs/lichess-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ paths:
description: |
Download one game in either PGN or JSON format.
Ongoing games have their last 3 moves omitted after move 5, as to prevent cheat bots from using this API.
Ongoing games are delayed by a few seconds ranging from 3 to 60 depending on the time control, as to prevent cheat bots from using this API.
tags:
- Games
security: []
Expand Down Expand Up @@ -1019,7 +1019,7 @@ paths:
Download the ongoing game, or the last game played, of a user.
Available in either PGN or JSON format.
Ongoing games have their last 3 moves omitted after move 5, as to prevent cheat bots from using this API.
Ongoing games are delayed by a few seconds ranging from 3 to 60 depending on the time control, as to prevent cheat bots from using this API.
tags:
- Games
security: []
Expand Down Expand Up @@ -1255,7 +1255,7 @@ paths:
default: false
- in: query
name: ongoing
description: Include ongoing games. Their last 3 moves are omitted after move 5, as to prevent cheat bots from using this API.
description: Ongoing games are delayed by a few seconds ranging from 3 to 60 depending on the time control, as to prevent cheat bots from using this API.
schema:
type: boolean
default: false
Expand Down Expand Up @@ -1326,7 +1326,7 @@ paths:
300 IDs can be submitted.
Ongoing games have their last 3 moves omitted after move 5, as to prevent cheat bots from using this API.
Ongoing games are delayed by a few seconds ranging from 3 to 60 depending on the time control, as to prevent cheat bots from using this API.
tags:
- Games
security: []
Expand Down Expand Up @@ -1627,7 +1627,7 @@ paths:
Then a message is sent each time a move is played.
Finally a description of the game is sent when it finishes, and the stream is closed.
After move 5, the stream intentionally remains 3 moves behind the game status, as to prevent cheat bots from using this API.
Ongoing games are delayed by a few seconds ranging from 3 to 60 depending on the time control, as to prevent cheat bots from using this API.
No more than 8 game streams can be opened at the same time from the same IP address.
tags:
Expand Down

0 comments on commit bfa27df

Please sign in to comment.