11-14-2020, 09:31 AM
(This post was last modified: 11-14-2020, 09:39 AM by slimy_asparagus.)
So I noticed the documentation on game logic and I appreciate that.
It has made me give it my best shot.
What I need to specify what I am trying to do at this stage (it does include some placeholders) is that "MoveWithinBoard" means:
You can move a "Cross" piece you own from a space it occupies on the board to a neighbouring space on the outer edge.
I have tried to express this with:
I also moved the usage to rules section. However I get the following compile error:
It has made me give it my best shot.
What I need to specify what I am trying to do at this stage (it does include some placeholders) is that "MoveWithinBoard" means:
You can move a "Cross" piece you own from a space it occupies on the board to a neighbouring space on the outer edge.
I have tried to express this with:
Code:
(define "MoveWithinBoard"
(move
from (sites Occupied by:Mover) if:(is In (to) (sites Hand Mover)) level:(level))
(to (sites Outer) if:(= (range (from) (to)) 1))
)
)
I also moved the usage to rules section. However I get the following compile error:
Code:
Empty substring from '(move (from (site...'. Maybe a wrong bracket type '}'?