fixed move generation
This commit is contained in:
@ -123,7 +123,10 @@ struct gameState_t newGameState(uint_least64_t *board, char *FEN) {
|
||||
else playerCastle->longCastle = true;
|
||||
}
|
||||
}
|
||||
if(*++FEN == '-') ++FEN;
|
||||
if(*++FEN == '-'){
|
||||
++FEN;
|
||||
gameState.enPassantTo = NOT_SELECTED;
|
||||
}
|
||||
else {
|
||||
gameState.enPassantTo = *FEN++ - 'a';
|
||||
gameState.enPassantTo += (BOARD_SIZE - *FEN++) * BOARD_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user