alexobviously / bishop

A chess logic package for Dart with flexible variant support
https://pub.dev/packages/bishop
Other
19 stars 8 forks source link

Support rules relating to perpetual checks #19

Open alexobviously opened 1 year ago

alexobviously commented 1 year ago

This can be handled by a new event: ActionEvent.onCheck. Probably the simple way is to allow analysing the state history in actions, but this would require linking states or something like that, maybe there's some other way of tracking checks. I'm averse to putting more specific case fields in BishopState though so maybe linking is the best way (as in, BishopState has a field linking to its previous state).

This handles part of (but not all of) #16

alexobviously commented 1 year ago

We have checks in state now, I wonder if we can safely give states parents and traverse..