Skip to content

Incorrect null move modification #44

@winapiadmin

Description

@winapiadmin
    inline void doNullMove() {
        history.push_back(current_state);
        current_state.turn = ~current_state.turn;
        current_state.hash ^= zobrist::RandomTurn;
        current_state.fullMoveNumber += (current_state.turn == WHITE);
        current_state.pliesFromNull = current_state.repetition = 0;
        current_state.mv = Move::null();
    }

It doesn't clear the en passant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions