Skip to content

Add king capture check in Position #23

Description

@jacklee1792

This is needed to generate legal moves from pseudo-legal ones. To check if a move is legal, we make the move and check if the opponent immediately has a move that captures our king

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions