Skip to content

Does adapting piece values to the variant work? #968

@HGMuller

Description

@HGMuller

I am not yet familiar enough with the code to say with certainty this is a problem. But in the init function of psqt.cpp the piece values get adapted to the variant, e.g. for the board size. I would have expected that these recalculated values are then assigned back to PieceValue. But I cannot find that anywhere. They are assigned to CapturePieceValue and EvalPieceValue (for both colors!). The former is only used in SEE, for the latter I could not find any usage at all! This is a bit suspect. Shouldn't the modified values have been assigned to PieceValue instead of EvalPieceValue? That would seem a more natural solution to the bug you just fixed. Why recalculate all these values, and then do not anything with them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions