| 84 | }; |
| 85 | |
| 86 | void print_board(board_element *b) |
| 87 | { |
| 88 | for (unsigned row = 0; row < BOARD_DIM; ++row) |
| 89 | { |
| 90 | for (unsigned col = 0; col < BOARD_DIM; ++col) |
| 91 | { |
| 92 | printf(" %d", b[row * BOARD_DIM + col].solved_element); |
| 93 | if (col == 2 || col == 5) |
| 94 | printf(" |"); |
| 95 | } |
| 96 | printf("\n"); |
| 97 | if (row == 2 || row == 5) |
| 98 | printf(" ---------------------\n"); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | void print_potential_board(board_element *b) |
| 103 | { |