position: raw_board_print in octal, fix mask in pos_set_sq/pos_clr_sq

This commit is contained in:
2024-02-22 08:35:26 +01:00
parent 568b39e366
commit 4d8f69e8c9
2 changed files with 6 additions and 6 deletions

View File

@@ -112,7 +112,7 @@ pos_t *pos_clear(pos_t *pos)
pos->turn = 0;
pos->clock_50 = 0;
pos->plycount = 0;
pos->en_passant = 0;
pos->en_passant = SQUARE_NONE;
pos->castle = 0;
memset(pos->board, 0, sizeof(pos->board));
//pos->curmove = 0;
@@ -237,7 +237,7 @@ void raw_board_print(const pos_t *pos)
for (rank_t r = RANK_8; r >= RANK_1; --r) {
for (file_t f = FILE_A; f <= FILE_H; ++f)
printf("%02x ", pos->board[sq_make(f, r)]);
printf("%02o ", pos->board[sq_make(f, r)]);
printf(" \n");
}
return;