-
Notifications
You must be signed in to change notification settings - Fork 2
/
consolehelp.htm
86 lines (61 loc) · 3.27 KB
/
consolehelp.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title>lozza chess engine</title>
<meta name="title" content="lozza chess engine" />
<meta name="description" content="lozza chess engine" />
<meta name="keywords" content="chess, javascript, lozza, queens, gambit, queens gambit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="bootstrap3/css/bootstrap.min.css" />
<style>
body {padding: 20px;}
</style>
</head>
<body>
<p>This Lozza UI allows you to type UCI commands in a console-like manner.</p>
<p><b>COMMAND EXTENSIONS</b></p>
<p>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".</p>
<p><b>quit</b></p>
<p>Kill the Lozza engine. In the web console only, you can use <b>start</b> to restart it.</p>
<p><b>start</b></p>
<p>Web context only. Start Lozza. i.e. create a new web worker containing the Lozza. After a start the following are automatically sent: <b>uci, ucinewgame, position startpos, board</b>.</p>
<p>A <b>start</b> command is issued when the console UI starts.</p>
<p><b>clear</b></p>
<p>Web context only. Clear the previous output.</p>
<p><b>board</b></p>
<p>Display a textual FEN and in a web context a graphical representation of the current position.</p>
<p><b>bench</b></p>
<p>display a total node count for a selection of FENs. Takes a few seconds to run.</p>
<p><b>perft</b> <b>depth</b> d [<b>moves</b> m] [<b>inner</b> <b>1</b>|<b>0</b>]</p>
<p>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. <b>inner 1</b> will show inner node counts with the default being inner 0. You can see Lozza do various PERFTs <a href="https://op12no2.github.io/lozza-ui/perft.htm">here</a>.</p>
<p><b>eval</b></p>
<p>Show how the static evaluation of the current position is constructed.</p>
<p><b>id</b> idstring</p>
<p>Attach an identification label to the current position. Only relevant if UCI debugging is on.</p>
<p><b>ping</b></p>
<p>Check that the engine is alive.</p>
<p><b>net</b></p>
<p>Display network properties.</p>
<p><b>et</b></p>
<p>eval tests; specifically the UE part of NNUE</p>
<p><b>pt</b></p>
<p>PERFT tests</p>
<p><b>SHORTCUTS</b></p>
<p><b>u</b> == ucinewgame</p>
<p><b>q</b> == quit</p>
<p><b>p</b> == position</p>
<p><b>p s</b> == position startpos</p>
<p><b>g</b> == go</p>
<p><b>g d</b> = go depth</p>
<p><b>b</b> == board</p>
<p><b>n</b> == net</p>
<p><b>NOTES</b></p>
<p>An explicit <b>ucinewgame</b> 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.</p>
<p>Lozza plays it's best move when a <b>go</b> command completes, changing the current position.</p>
<p>The current position is unchanged after a <b>perft</b></p>
<p><a href="https://op12no2.github.io/lozza-ui">Lozza Chess</a>
</body>
</html>