This commit is contained in:
2021-10-31 13:55:38 +01:00
parent 16c0c06095
commit cf1e88c926

View File

@@ -60,14 +60,14 @@ void moves_print(pos_t *pos)
move_t *move; move_t *move;
int i = 0; int i = 0;
printf("%s pseudo-moves: ", pos->turn == WHITE? "White": "Black"); printf("%s pseudo-moves:\n\t", pos->turn == WHITE? "White": "Black");
list_for_each_safe(p_cur, tmp, &pos->moves) { list_for_each_safe(p_cur, tmp, &pos->moves) {
move = list_entry(p_cur, move_t, list); move = list_entry(p_cur, move_t, list);
move_print(move); move_print(move);
i++; i++;
} }
printf("Total moves = %d\n", i); printf("\n\tTotal moves = %d\n", i);
} }
/* generate moves for non pawn pieces /* generate moves for non pawn pieces