Skip to content

Check counting does not work for extinction pieces with extinctionPseudoRoyal = true #975

@SamuelTheCamel

Description

@SamuelTheCamel

When extinctionPsuedoRoyal = true, the last remaining extinction piece should be treated as a royal piece, meaning it should be able to be checked. However, when checkCounting = true, the number of checks does not decrease when the last remaining extinction piece is checked. This also applies to duple checks when dupleCheck = true.

Steps to reproduce

Create a variant with the following parameters:

extinctionValue = loss
extinctionPieceTypes = (insert desired piece types here)
extinctionPseudoRoyal = true

checkCounting = true

Then, set the position such that there is only one extinction piece left for black and check it with white. Observe that the number of checks does not decrease.

Here's an example variant:

[test_extinction_check_count]

knight = n
queen = q
king = -

castling = false

extinctionValue = loss
extinctionPieceTypes = *
extinctionPseudoRoyal = true

checkCounting = true

startFen = 4n3/8/8/8/8/8/8/3Q4 w - - 9+9 0 1

Qe1 results in a check but the check counts remain as 9+9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions