Examples

Play mode

// GUI start engine
cxboard 1

// Engine identifies itself
id name tsito 2.0
id author Noah Roberts

// Engine tells GUI about some options
option name Null Move type check default true
option name Hash type spin default 32 min 0 max 256
option name Search type combo default MTD var MTD var NegaScout var AlphaBeta

// Engine is done
cxboardok

// Gui sets some options
setoption name Null Move value false
setoption name Hash value 128
setoption name Search value NegaScout

// Wait for engine to do the above
isready

// engine finishes
readyok

// itialize board...
position startpos

// Set computer to play
playother
// or playcurrent in which case it starts thinking...

// User moves..
move h2e2

// Engine thinks...
info depth 1
info score cp 45 depth 1 nodes 24 time 9 pv b7b0
info depth 2
info score cp 0 depth 2 nodes 130 time 23 pv h9g7 h0g2
// and so on...

// engine replies
move h9g7

// User quits
quit
   

Forced mode

// GUI start engine
cxboard 1

// Engine identifies itself
id name tsito 2.0
id author Noah Roberts

// Engine tells GUI about some options
option name Null Move type check default true
option name Hash type spin default 32 min 0 max 256
option name Search type combo default MTD var MTD var NegaScout var AlphaBeta

// Engine is done
cxboardok

// Gui sets some options
setoption name Null Move value false
setoption name Hash value 128
setoption name Search value NegaScout

// Wait for engine to do the above
isready

// engine finishes
readyok

// itialize board...
position startpos

// enter force mode...
force 
// as of 2003-10-26 it was decided that engines should post-initialize
// into forced mode.  In any case it is not specified and should not be 
// depended on.

// User moves..
move h2e2

go infinite
// Engine thinks...
info depth 1
info score cp 45 depth 1 nodes 24 time 9 pv b7b0
info depth 2
info score cp 0 depth 2 nodes 130 time 23 pv h9g7 h0g2
// and so on...

// user requests an end...
stop
// engine replies
bestmove h9g7

// Gui decides on something else
move h7h0

// User quits
quit