niklasf / shakmaty

A Rust library for chess and chess variant rules and operations
https://docs.rs/shakmaty
GNU General Public License v3.0
210 stars 41 forks source link

Iterate over all squares #57

Closed Suyashtnt closed 2 years ago

Suyashtnt commented 2 years ago

Is there a way to iterate over all squares? Iterating over pieces does not return blanks

niklasf commented 2 years ago

Hi. You can use for sq in Square::ALL.

Suyashtnt commented 2 years ago

Hi. You can use for sq in Square::ALL.

Thanks