Connection

4.4 The Connection of the Engine

DokChess has no graphical user interface. Instead communication takes place via standard input and output. The text-based XBoard acts as a communication protocol (→ Decision 9.1 “How does the engine communicate with the outside world?”). You can use DokChess interactively with the command line if you know the XBoard commands and are able to interpret the engine responses (→ Concept 8.3 User Interface). See image below:

DokChess on the command line

The actual DokChess engine is attached by a reactive approach (“Reactive Extensions”) (→ 6.1 Runtime view “Move Determination Walkthrough”). DokChess is accessible even during its analysis. This way, for instance a user can force the engine to move immediately.

On Windows, integrating DokChess in a UI is done with a batch file (*.bat). It starts the Java Virtual Machine (JVM) with the class with the main method as a parameter (→ 7. 7. Deployment View).