--- /dev/null
+width: 10
+height: 10
+tab: " . 0 0 0 01 0 0 0 0 0 0 0 0 .0 0 . . 0 . . 0 0 0. 1 1 1 . . 1 . . 11 1 1 1 . 1 1 1 1 01 1 1 1 . "
+turn: 1
player = (player == 0) ? 1 : 0;
emptycache (cache);
cleanafterjump (board);
+ pettoqueen (board);
mode = 0;
}
break;
}
}
+void pettoqueen (board_t *board)
+{
+ int i;
+ char *cell = NULL;
+ for (i = 0; i < board->width; i++) {
+ cell = getcell (board, i, board->height - 1);
+ if (*cell == '0') {
+ *cell = '6';
+ }
+ cell = getcell (board, i, 0);
+ if (*cell == '1') {
+ *cell = '7';
+ }
+ }
+}
+
int testjump (board_t *board, int x, int y, int mode)
{
int ret = 0;
void cleanafterjump (board_t *board);
+void pettoqueen (board_t *board);
+
int testjump (board_t *board, int x, int y, int mode);
int testalljumps (board_t *board, int x, int y);