jordanbray / chess

A rust library to manage chess move generation
https://jordanbray.github.io/chess/
MIT License
231 stars 54 forks source link

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

Open AlexanderHarrison opened 2 years ago

AlexanderHarrison commented 2 years ago

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 commented 12 months ago

I want this.