6 .Nd Cute Chess engine configuration file
9 is the chess engine configuration file for
11 An engine configuration defines name, command, working directory and
13 These options can be then used in
19 Engine configurations are defined in JavaScript Object Notation (JSON) format.
24 A JSON value must be one of:
36 is structure of name-value pairs enclosed in curly brackets.
39 Name and value are separated by a single colon.
40 Pairs are separated by commas.
42 Example objects would be:
43 .Bd -literal -offset indent
44 { "Finland" : ".fi", "Sweden" : ".se" }
48 "lastName" : "Denton",
50 "languages" : [ "English", "French", "Spanish" ]
56 is a structure of zero or more values enclosed in square brackets.
57 Values are separated by commas.
59 Example arrays would be:
60 .Bd -literal -offset indent
72 consists of an integer part and optional fractional and/or exponent part.
73 The integer part can be prefixed with a minus sign.
74 Fractional part is a decimal point followed by one or more digits.
75 Exponent part begins with a letter E in upper or lowercase which may be
76 followed by a plus or minus sign.
77 The E and optional sign are followed by one or more digits.
79 Octal and hex forms are not allowed.
81 Example numbers would be:
82 .Bd -literal -offset indent
91 is sequence of characters enclosed in quotation marks.
92 All Unicode characters may be placed within the quotation marks except
93 for the characters that must be escaped: quotation mark, backslash, and
96 Available two-character escape sequences are as follows:
98 .Bl -tag -width Ds -offset indent -compact
102 Forward slash character.
112 Vertical tab character.
114 Unicode character where
116 is a four hexadecimal digits that encode the character's code point.
119 Example strings would be:
120 .Bd -literal -offset indent
123 "Please place all items \e"carefully\e" in bins."
125 "\eu03a6 is one of the letters of Greek alphabet."
127 .Sh ENGINE CONFIGURATION
128 The configuration file consist of an
132 Each object defines a single engine configuration.
133 Required options for each engine configuration are:
135 .It Ic name No : Ar string
136 The name of the engine.
137 .It Ic command No : Ar string
139 .It Ic protocol No : \(dquci\(dq | \(dqxboard\(dq
140 The chess engine protocol used by this engine.
143 Other available options for an engine configuration are:
145 .It Ic workingDirectory No : Ar string
146 The working directory of the engine.
147 .It Ic initStrings No : Ar array No of Ar string
148 Array of strings sent to the engine's standard input at startup.
149 .It Ic whitepov No : Cm true | Cm false
152 invert the engine's scores when it plays black.
156 This option should be used with engines that always report scores from
160 A minimal engine configuration file for the Sloppy chess engine:
161 .Bd -literal -offset indent
171 Using the above engine configuration file with the
175 .Dl $ cutechess-cli \-engine conf=Sloppy -engine conf=Sloppy -each tc=40/60 -rounds 10
180 .%T "The application/json Media Type for JavaScript Object Notation (JSON)"