trevorbayless / cli-chess

A highly customizable way to play chess in your terminal. Play online (via Lichess.org) and offline against the Fairy-Stockfish engine. All Lichess variants are supported.
GNU General Public License v3.0
190 stars 6 forks source link

Add blitz time control #21

Closed MeiH10 closed 1 year ago

MeiH10 commented 1 year ago

What feature would you like to see in cli-chess?

Add blitz(5 min) time control

trevorbayless commented 1 year ago

Blitz time control (3-5min) is available and implemented in Online games against the computer. Unfortunately, the same cannot be implemented on games vs random opponents as it is restricted by Lichess. Here's the explanation Lichess provided in one of their API blogs:

Why is it restricted to Rapid, Classical and Correspondence? For cheating reasons. When moves are received through an API, Lichess can't tell who really played them. Is could be a person, or a chess engine. The Lichess website and mobile app embed cheat detection tools that help us know if moves are played fairly. But APIs bypass these tools. Of course, most of our cheat detection happens on the server-side, and therefore also applies to the Board API. But we still don't feel comfortable giving up on client-side detection for any games faster than Rapid. Source: https://lichess.org/blog/XlRW5REAAB8AUJJ-/welcome-lichess-boards