… | |
… | |
19 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | --> |
20 | --> |
21 | </head> |
21 | </head> |
22 | <body> |
22 | <body> |
23 | |
23 | |
24 | <h1>$Revision: 1.10 $</h1> |
24 | <h1>$Revision: 1.11 $</h1> |
25 | |
25 | |
26 | <h1>KGS Protocol Description</h1> |
26 | <h1>KGS Protocol Description</h1> |
27 | |
27 | |
28 | <p>This XML document describes the KGS protocol. It is also used |
28 | <p>This XML document describes the KGS protocol. It is also used |
29 | to automatically generate the perl parser for all the messages and |
29 | to automatically generate the perl parser for all the messages and |
… | |
… | |
184 | BASE TYPE: I32<br /> |
184 | BASE TYPE: I32<br /> |
185 | LENGTH: <br /> |
185 | LENGTH: <br /> |
186 | MULTIPLIER: 2<br /> |
186 | MULTIPLIER: 2<br /> |
187 | |
187 | |
188 | <p>Komi values are multiplied by 2 to make them integer in the |
188 | <p>Komi values are multiplied by 2 to make them integer in the |
189 | protocol. Of course, sometimes they are encoded in 16 bits, sometimes |
189 | protocol.</p> |
190 | in 32. Get used to this.</p> |
|
|
191 | |
190 | |
192 | <h4>TYPE result</h4> |
191 | <h4>TYPE result</h4> |
193 | BASE TYPE: I32<br /> |
192 | BASE TYPE: I32<br /> |
194 | LENGTH: <br /> |
193 | LENGTH: <br /> |
195 | MULTIPLIER: 2<br /> |
194 | MULTIPLIER: 2<br /> |
196 | |
195 | |
197 | <p>The game result is also multiplied by four to give it higher |
196 | <p>The game result is also multiplied by four to give it higher |
198 | resolution. There are also special values for wins by time etc.</p> |
197 | resolution. There are also special values for wins by time etc.</p> |
199 | |
198 | |
200 | <h4>TYPE score</h4> |
199 | <h4>TYPE score16</h4> |
|
|
200 | BASE TYPE: I16<br /> |
|
|
201 | LENGTH: <br /> |
|
|
202 | MULTIPLIER: 4<br /> |
|
|
203 | <h4>TYPE score32</h4> |
201 | BASE TYPE: I32<br /> |
204 | BASE TYPE: I32<br /> |
202 | LENGTH: <br /> |
205 | LENGTH: <br /> |
203 | MULTIPLIER: 4<br /> |
206 | MULTIPLIER: 4<br /> |
204 | |
207 | |
205 | <p>A score value (used for displaying the score at the end of a game) |
208 | <p>A score value (used for displaying the score at the end of a game) |
… | |
… | |
2015 | <td colspan="4"> |
2018 | <td colspan="4"> |
2016 | </td> |
2019 | </td> |
2017 | </tr> |
2020 | </tr> |
2018 | <tr> |
2021 | <tr> |
2019 | <td>score</td> |
2022 | <td>score</td> |
2020 | <td>score</td> |
2023 | <td>score32</td> |
2021 | <td></td> |
2024 | <td></td> |
2022 | <td> |
2025 | <td> |
2023 | <b></b> </td> |
2026 | <b></b> </td> |
2024 | </tr> |
2027 | </tr> |
2025 | <tr> |
2028 | <tr> |