Skip to content

add MoveGen::has_legal_moves and use it in Board.status#64

Open
AlexanderHarrison wants to merge 1 commit into
jordanbray:masterfrom
AlexanderHarrison:master
Open

add MoveGen::has_legal_moves and use it in Board.status#64
AlexanderHarrison wants to merge 1 commit into
jordanbray:masterfrom
AlexanderHarrison:master

Conversation

@AlexanderHarrison

Copy link
Copy Markdown

Resolves #63.

Added associated method MoveGen::has_legal_moves(&Board) -> bool, which short-circuits if a legal move is found. Also sped up Board.status using this method.

@SunnyWar

Copy link
Copy Markdown

I want this.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Board.status unnecessarily calculates all legal moves

2 participants