This Lozza UI allows you to type UCI commands in a console-like manner.

COMMAND EXTENSIONS

In addition to the standard UCI protocol, the following commands can be used, most of which also work offline; i.e. by running "node lozza.js".

quit

Kill the Lozza engine. In the web console only, you can use start to restart it.

start

Web context only. Start Lozza. i.e. create a new web worker containing the Lozza. After a start the following are automatically sent: uci, ucinewgame, position startpos, board.

A start command is issued when the console UI starts.

clear

Web context only. Clear the previous output.

board

Display a textual FEN and in a web context a graphical representation of the current position.

bench

display a total node count for a selection of FENs. Takes a few seconds to run.

perft depth d [moves m] [inner 1|0]

Perform a perft analysis to a depth of d ply based on the current position. m is the expected number of moves and is optional, defaulting to 0. inner 1 will show inner node counts with the default being inner 0. You can see Lozza do various PERFTs here.

eval

Show how the static evaluation of the current position is constructed.

id idstring

Attach an identification label to the current position. Only relevant if UCI debugging is on.

ping

Check that the engine is alive.

SHORTCUTS

u == ucinewgame

q == quit

p == position

p s == position startpos

g == go

g d = go depth

b == board

NOTES

An explicit ucinewgame is needed to reset the transposition tables; and is required before the first position. It is optional during a game since it has no effect other than to clear the TT.

Lozza plays it's best move when a go command completes, changing the current position.

The current position is unchanged after a perft

Lozza Chess