03-18-2021, 01:16 PM
The first attached image shows the to-sites for the following move:
These are all the sites that D4 can reach by taking up to 4 steps onto empty sites (let's ignore the strange fact that the range is set to 5, and not 4).
But if D4 was restricted to taking steps in the forward directions, which in this case would be WNW, N and ENE, then the result would be the sites not crossed out in the second image. But what is the Ludii description of that move? I thought it would be:
Given, of course that the piece belongs to a player with the north direction.
Code:
(move
(to
(sites Distance
(step
(to if:(is Empty (to)))
)
from:(from)
(range 1 5)
)
)
)
But if D4 was restricted to taking steps in the forward directions, which in this case would be WNW, N and ENE, then the result would be the sites not crossed out in the second image. But what is the Ludii description of that move? I thought it would be:
Code:
(move
(to
(sites Distance
(step
Forwards
(to if:(is Empty (to)))
)
from:(from)
(range 1 5)
)
)
)