clean move_t: Remove capture/dpush/promotion flags, captured piece

This commit is contained in:
2024-06-12 07:45:22 +02:00
parent 49b678e3ce
commit ec2d2291d4
4 changed files with 45 additions and 37 deletions

View File

@@ -89,7 +89,7 @@
*/
/**
* move_str() - get a move string
* move_to_str() - get a move string
* @dst: destination memory
* @move: move
* @flags: moves selection and display options.
@@ -102,7 +102,7 @@
* M_PR_NL: print a newline after move
* M_PR_EVAL: print move eval
*/
char *move_str(char *dst, const move_t move, __unused const int flags)
char *move_to_str(char *dst, const move_t move, __unused const int flags)
{
square_t from = move_from(move);
square_t to = move_to(move);
@@ -116,7 +116,6 @@ char *move_str(char *dst, const move_t move, __unused const int flags)
return dst;
}
/**
* moves_print() - print movelist moves.
* @moves: &movelist_t moves list
@@ -135,7 +134,7 @@ void moves_print(movelist_t *moves, __unused int flags)
char str[16];
//printf("%2d:", moves->nmoves);
for (int m = 0; m < moves->nmoves; ++m)
printf("%s ", move_str(str, moves->move[m], flags));
printf("%s ", move_to_str(str, moves->move[m], flags));
printf("\n");
}