Lines Matching refs:board
158 if (board[i])
159 bsect(board[i], 13, 1 + 4 * (12 - i), -1);
161 if (board[0]) /* print red men on bar */
162 bsect(board[0], 13, 25, -1);
165 if (board[i])
166 bsect(board[i], 13, 29 + 4 * (6 - i), -1);
177 if (board[i])
178 bsect(board[i], 3, 1 + 4 * (i - 13), 1);
180 if (board[25]) /* print white's men on bar */
181 bsect(board[25], 3, 25, 1);
184 if (board[i])
185 bsect(board[i], 3, 29 + 4 * (i - 19), 1);
190 for (i = 0; i < 26; i++)/* save board position for refresh later */
191 oldb[i] = board[i];
197 * Print the contents of a board position. "b" has the value of the
269 if (board[i] != oldb[i]) {
270 fixpos(oldb[i], board[i], 13, 1 + (12 - i) * 4, -1);
271 oldb[i] = board[i];
273 if (board[0] != oldb[0]) { /* fix red men on bar */
274 fixpos(oldb[0], board[0], 13, 25, -1);
275 oldb[0] = board[0];
278 if (board[i] != oldb[i]) {
279 fixpos(oldb[i], board[i], 13, 29 + (6 - i) * 4, -1);
280 oldb[i] = board[i];
288 if (board[i] != oldb[i]) {
289 fixpos(oldb[i], board[i], 3, 1 + (i - 13) * 4, 1);
290 oldb[i] = board[i];
292 if (board[25] != oldb[25]) { /* fix white men on bar */
293 fixpos(oldb[25], board[25], 3, 25, 1);
294 oldb[25] = board[25];
297 if (board[i] != oldb[i]) {
298 fixpos(oldb[i], board[i], 3, 29 + (i - 19) * 4, 1);
299 oldb[i] = board[i];