forked from op12no2/lozza-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsolehelp.htm
70 lines (60 loc) · 3.15 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
<!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:-</p>
<p><b>quit</b></p>
<p>Kill the Lozza engine. Use start to restart it.</p>
<p><b>stop</b></p>
<p>Stop a long analysis. Will only work in a web worker context.</p>
<p><b>bench</b></p>
<p>Do some self checks.</p>
<p><b>start</b></p>
<p>Start Lozza. i.e. create a new web worker containing the Lozza. After a start the following are automatically sent:-</p>
<p>uci<br />ucinewgame<br />position startpos<br />board</p>
<p>A start command is issued when the console UI starts.</p>
<p><b>clear</b></p>
<p>Clear the previous output.</p>
<p><b>board</b></p>
<p>Display a textual FEN and graphical representation of the current position.</p>
<p><b>perft</b> depth d [moves m] [inner 1|0]</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. inner 1 will show inner node counts with the default being inner 0</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>mistakes</b> 0|1</p>
<p>Default is 0 (off). Force Lozza to make a few blunders when she moves. The number of blunders is inversely proportional to the depth searched. Auto reset on ucinewgame.</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>NOTES</b></p>
<p>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.</p>
<p>Lozza plays it's best move when a go command completes, changing the current position.</p>
<p>The current position is unchanged after a perft</p>
<p>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.</p>
<p><a href="https://op12no2.github.io/lozza-ui">Lozza Chess</a>
</body>
</html>