style
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user