Skip to content

Movement logics ignores king during check state #169

@TeunK

Description

@TeunK

logic- bug- related:

During check: the checking piece is allowed to hop past (behind) the king, but when making this step, and then undoing this action - the logics works properly again and the player is NOT allowed to make this step again.

Notice the white queen can take out the horse behind the king
1

Same story for the other player, different position:
4

After making this (normally) unallowed step, and undoing this move the following happens:
5

One more example using a different piece:
6

undo -> retry:
7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions