Lozza UI console

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

http://op12no2.me/toys/lozza/console.htm

COMMAND EXTENSIONS

In addition to the standard UCI protocol , the following commands can be used:-

stop

Stop the Lozza engine.   Useful to stop a long perft or analysis.  What actually happens is that the web worker containing Lozza is killed.  You’ll need to restart one.

start

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

Clear the previous output.

board

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

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

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

The start, stop and clear commands are not be available when using Lozza offline; for example with node.js.  Similarly only the textual board representation is shown.