#include <string.h>
#include "ui.h"
-#include "othello.h"
#include "debug.h"
+#include "list.h"
/* in all print routine, y and x are the coordinates of the first character of the shape
* which can be a space ' ' */
set_default_colors();
}
-/* will be used for pawn placement hints */
+/* used for pawn placement hints */
static void print_x(int y, int x, unsigned int type) {
if (type == hint_allowed) {
}
}
+void print_shots_list(int base_y, int base_x, struct shots_list_s* shots_list) {
+ struct shots_list_s* list_counter;
+
+ list_for_each_entry(list_counter, &shots_list->list, list) {
+ print_x(base_y + remap_y(list_counter->y), base_x + remap_x(list_counter->x), list_counter->type);
+ }
+}
+
int map_col_letter_to_index(char c) {
if (c == 'a' || c == 'A') {