Skip to content

Check if King is in check #2

@KristopherJordan

Description

@KristopherJordan

Be able to move the king and check if in check

I thought Pieces.get_move_options() to create an empty new board and set every field that the other colour has in check to False, and the others to True. Then check if the new_position is a valid move by checking this board with move options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions