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

Implement `Eq` for `Chess`. #47

Closed kraktus closed 3 years ago

kraktus commented 3 years ago

Completely equivalent to Fen::fen(Chess), i.e not checking CastlingMode. This behavior is up to debate. Address https://github.com/niklasf/shakmaty/pull/37#issuecomment-793052003.

Did not implement Hash for now, because it could either similar to the Eq implementation or be Zobrist based.

niklasf commented 3 years ago

Thanks!