-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get all possible orders for a unit #119
Comments
State implements Validator, so just provide the state if you have it :) |
Ah, ok 💡 I'm a little bit confused by the recursive nature of the options. What is the reason to implement it that way? |
They are both a bit overdesigned (to handle all kinds of order types and combinations, and support JSON serialization), and a bit of a hack, so that's understandable :O Best bet is probably to create a scenario and then look at what the options contain, and get an intuition for what it means. |
But how can I get the difference between a |
Support hold has the same province twice in a row at the end, while a support move has supported source/supported target. |
Ok. This feels wild. |
🦍 |
How can I retrieve all possible orders for a unit based on a given state?
I found out, that the
Phase
interface has a methodsOptions
. But I'm unsure what validator means. Is this even the way to go for?The text was updated successfully, but these errors were encountered: