jkomoros / boardgame

An in-progress framework in golang to easily build boardgame Progressive Web Apps
Apache License 2.0
31 stars 4 forks source link

WithLegalMoveProgression is only legal if WithLegalPhase is also set #642

Closed jkomoros closed 6 years ago

jkomoros commented 6 years ago

Check in validate

jkomoros commented 6 years ago

As in, if you have a WithLegalMoveProgression, bu tno WithLegalPhase (that is, if you arent' using moves.AddOrderedForPhase) then error early

jkomoros commented 6 years ago

Also check for LegalPhases but non-leaf