10-30-2020, 02:26 PM
(This post was last modified: 10-30-2020, 02:53 PM by slimy_asparagus.)
(10-30-2020, 02:07 PM)Eric Piette Wrote: Hi,Eric, Thanks.
Code:(move Step
(from (sites "Edge"))
(to (sites "Edge"))
)
seems wrong in your description, (you can not step to a specific set of sites, but stepping only to site at a distance of one with conditions on it). But thanks for letting us know about the exception trigger in doing that. I will add a check for it.
However I think what you want here is just a simple move (not a step) such as
Code:(move
(from (sites "Edge"))
(to (sites "Edge"))
)
Regards,
Eric
However I do want to restrict the move to one step. There are in the game spec a lot more restrictions than that. However given what I have defined so far "one step" and in the "Edge" region is the closest very rough approximation. I specifically don't want to use "StepToEmpty" because there is stacking. I want to explore the Stacking issues as soon as possible before exploring other aspects.
So I can see where my error was, but I still can't work out how to fix it.
So now I am trying:
Code:
(define "MoveWithinBoard"
(move Step
(to if:(is In "Edge"))
)
)
Okay I got something to compile:
Code:
(define "MoveWithinBoard"
(move Step
(to if: (is In (to) (sites "Edge")))
)
)