I want to hear some tips on how to generating a chess state with clojure.spec.
It’s easy to define the constraints on data shapes. However I don’t know to express some limitations for a chess game state and how to do generating.
After thinking for a while, I think is useless to try to validate the game state or try to do generating based on limitations(like one player can’t have 3 horses).
I think I should generate a series of play record, however knowing current board state is necessary for generating play record. Because I have to know the positions of all chess. how can I get a state-like spec generator? Is it a good idea to use spec on this?