Universal Chess Interface


A Universal Chess Interface is an open communication protocol that enables chess engines to communicate with user interfaces.

History

In November 2000, the UCI protocol was released. Designed by Rudolf Huber and Stefan Meyer-Kahlen, the author of Shredder, UCI rivals the older "Chess Engine Communication Protocol" introduced with XBoard/WinBoard.
In 2002, Chessbase, the chess software company which markets Fritz, began to support UCI, which had previously been supported by only a few interfaces and engines.
, well over 100 engines are known to directly support UCI.

Design

By design, UCI assigns some tasks to the user interface which have traditionally been handled by the engine itself.
Most notably, the opening book is usually expected to be handled by the UI, by simply selecting moves to play until it is out of book, and only then starting up the engine for calculation in the resulting position. UCI does not specify any on-disk format for the opening book. Different UIs usually have their own proprietary formats.
While the UI can also take responsibility for handling endgame tablebases, this is arguably better handled in the engine itself, as having tablebase information can be useful for considering possible future positions.
Stefan-Meyer Kahlen's UCI protocol in Shredder uses long algebraic notation for moves. A "nullmove" from the Engine to the GUI should be sent as 0000.
;Examples:
The uci_limitstrength parameter tells engines with this feature to play at a lower level. The uci_elo parameter specifies the Elo rating at which the engine will aim to play.