| 37 * a BYTE describing the moved piece (see below) |
37 * a BYTE describing the moved piece (see below) |
| 38 * a BYTE index for the file the piece was moved from |
38 * a BYTE index for the file the piece was moved from |
| 39 * a BYTE index for the row the piece was moved from |
39 * a BYTE index for the row the piece was moved from |
| 40 * a BYTE index for the file the piece was moved to |
40 * a BYTE index for the file the piece was moved to |
| 41 * a BYTE index for the row the piece was moved to |
41 * a BYTE index for the row the piece was moved to |
| |
42 * a BYTE set to 1 if this is a capturing move and to zero if it is not |
| |
43 * a BYTE set to 1 if this move gives check, 2 if it gives checkmate, and |
| |
44 zero otherwise |
| 42 * a BYTE describing the selected piece for promotion (otherwise zero) |
45 * a BYTE describing the selected piece for promotion (otherwise zero) |
| 43 |
46 |
| 44 Note carefully that the byte order used by this protocol is little-endian while |
47 Note carefully that the byte order used by this protocol is little-endian while |
| 45 the standard network byte order would be big-endian. But since the vast majority |
48 the standard network byte order would be big-endian. But since the vast majority |
| 46 of processors use little-endian nowadays, this protocol uses little-endian, too. |
49 of processors use little-endian nowadays, this protocol uses little-endian, too. |
| 114 * when the used time for a move is less than the delay, the move costs no time |
117 * when the used time for a move is less than the delay, the move costs no time |
| 115 * the delay is always subtracted from the actual move time |
118 * the delay is always subtracted from the actual move time |
| 116 |
119 |
| 117 ## Playing the Game |
120 ## Playing the Game |
| 118 |
121 |
| 119 TODO: describe |
122 The game is played by exchanging moves. |
| |
123 We call the player supposed to make the next move the _active_ player. |
| |
124 The other player we call the _waiting_ player. |
| |
125 |
| |
126 ### Make a Move |
| |
127 |
| |
128 ### Resign |
| |
129 |
| |
130 ### Offer or Claim a Draw |
| |
131 |
| |
132 ### Propose Resignation |
| 120 |
133 |
| 121 ## Message Code Table |
134 ## Message Code Table |
| 122 |
135 |
| 123 The following table shows the definitions of the network codes. |
136 The following table shows the definitions of the network codes. |
| 124 |
137 |