6 .Nd Cute Chess engine configuration file
9 is the chess engine configuration file for
13 A JSON value must be one of:
25 is structure of name-value pairs enclosed in curly brackets.
28 Name and value are separated by a single colon.
29 Pairs are separated by commas.
31 Example objects would be:
32 .Bd -literal -offset indent
33 { "Finland" : ".fi", "Sweden" : ".se" }
37 "lastName" : "Denton",
39 "languages" : [ "English", "French", "Spanish" ]
45 is a structure of zero or more values enclosed in square brackets.
46 Values are separated by commas.
48 Example arrays would be:
49 .Bd -literal -offset indent
61 consists of an integer part and optional fractional and/or exponent part.
62 The integer part can be prefixed with a minus sign.
63 Fractional part is a decimal point followed by one or more digits.
64 Exponent part begins with a letter E in upper or lowercase which may be
65 followed by a plus or minus sign.
66 The E and optional sign are followed by one or more digits.
68 Octal and hex forms are not allowed.
70 Example numbers would be:
71 .Bd -literal -offset indent
80 is sequence of characters enclosed in quotation marks.
81 All Unicode characters may be placed within the quotation marks except
82 for the characters that must be escaped: quotation mark, backslash, and
85 Available two-character escape sequences are as follows:
87 .Bl -tag -width Ds -offset indent -compact
91 Forward slash character.
101 Vertical tab character.
103 Unicode character where
105 is a four hexadecimal digits that encode the character's code point.
108 Example strings would be:
109 .Bd -literal -offset indent
112 "Please place all items \e"carefully\e" in bins."
114 "\eu03a6 is one of the letters of Greek alphabet."
116 .Sh ENGINE CONFIGURATION
117 The configuration file consist of an
121 Each object defines a single engine configuration.
122 Required options for each engine configuration are:
124 .It Ic name No : Ar string
125 The name of the engine.
126 .It Ic command No : Ar string
128 .It Ic protocol No : \(dquci\(dq | \(dqxboard\(dq
129 The chess engine protocol used by this engine.
132 Other available options for an engine configuration are:
134 .It Ic workingDirectory No : Ar string
135 The working directory of the engine.
136 .It Ic initStrings No : Ar array No of Ar string
137 Array of strings sent to the engine's standard input at startup.
138 .It Ic whitepov No : Cm true | Cm false
141 invert the engine's scores when it plays black.
145 This option should be used with engines that always report scores from
149 A minimal engine configuration file for the Sloppy chess engine:
150 .Bd -literal -offset indent
163 .%T "The application/json Media Type for JavaScript Object Notation (JSON)"