- if (type > 0 && type < 5) {
- set_shots_list_coordinates(y, x, shots_list);
- shots_list->type = type;
+ for (unsigned int i = 0; i <= board_size; i++) {
+ for (unsigned int j = 0; j <= board_size; j++) {
+ if (is_legal_shot(i, j, current_player, pawn_array)) {
+ add_shots_list_cell(i, j, hint_allowed, shots_list);
+ /* FIXME: a neighbourhood detection is needed
+ } else if (is_box_type(i, j, pawn_array, empty)){
+ add_shots_list_cell(i, j, hint_forbidden, shots_list);
+ */
+ }
+ }