Chess is played between two opponents, who move their pieces in turn. DokChess takes the role of one of the opponents, and competes against a human opponent. For this purpose, the two need to communicate, e.g. about their moves, or draw offers.
As an alternative to a human opponent DokChess can also compete with a different engine. The requirements related to the exchange of information are the same.
About the opening, which is the early stage of a game, extensive knowledge exists in chess literature. This knowledge is partly free and partly also commercially available in the form of libraries and databases. Within DokChess no such library is created. Optionally an external system is connected instead in order to permit a knowledge based play in the early stages, as expected by human players.
If just a very few pieces are left on the board (e.g. only the two kings and a queen), endgame libraries can be used analogously to opening libraries. For any position with this piece constellation these libraries include the statement whether a position is won, drawn or lost, and if possible the necessary winning move.
Within DokChess no such library is created. Optionally an external system is connected instead in order to bring clearly won games home safely, or to use the knowledge from the libraries for analysis and position evaluation.