Add flags for move display. Fix move generator color + pawn capture

This commit is contained in:
2021-11-01 09:37:40 +01:00
parent 537c36d14c
commit 06548a6464
3 changed files with 103 additions and 47 deletions

View File

@@ -77,7 +77,9 @@ pos_t *fen2pos(pos_t *pos, char *fen)
piece = KING;
//goto set_square;
set_square:
//printf("f=%d r=%d *p=%c piece=%c\n", file, rank, *p, cp);
/*printf("f=%d r=%d *p=%c piece=%c color=%d\n",
file, rank, *p, cp, color);
*/
piece |= color;
//board[SQ88(file, rank)]->piece = piece;
board[SQ88(file, rank)].piece = piece;