bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
229 stars 80 forks source link

How to get legal moves for White/Black side #105

Closed jalpp closed 1 year ago

jalpp commented 1 year ago

So I’m trying to get legal moves for one specific side, I tried using board.legalmoves but it returns all legal moves. Is there side param I can pass in?

jalpp commented 1 year ago

Nvm found it