SebLague / Chess-Challenge

Create your own tiny chess bot!
https://www.youtube.com/watch?v=Ne40a5LkK6A
MIT License
1.77k stars 1.06k forks source link

Add Piece-specific move generation #451

Open Sem1Rose opened 1 year ago

Sem1Rose commented 1 year ago

If i want to filter the board.GetLegalMoves(); to only get a specific piece's moves, i'd need to use linq to filter the moves based on the type of the move's MovePieceType and StartSquare, which is not very efficient, so it'd be easier if you could add something like board.GeneratePieceMoves() to generate only this piece's moves.

mcthouacbb commented 1 year ago

API changes are no longer accepted after August 1st