07-02-2020, 09:53 PM
Section A.6.1 of the version of the LLR at https://ludii.games/downloads/LudiiLangu...erence.pdf (for v0.9.3, from 2020-05-20) reads:
(define "StepForwardToEmpty"
(step
Forward
(to if:(in (to) (empty)))
)
)
Loading/compiling this results in the error: "Couldn't find ludeme class for token 'in'. Couldn't find ludeme class for token 'empty'.". Perhaps this worked in an older version of Ludii, before the super-ludeme "is" was introduced?
Meanwhile, def/rules/play/moves/StepForwardToEmpty.def reads:
(define "StepForwardToEmpty"
(step
Forward
(to if:(is In (to) (sites Empty)))
)
)
This latter version compiles without any error. (Also, I imagine this is functionally equivalent to StepForwardsToEmpty, which is defined in the same directory.)
(define "StepForwardToEmpty"
(step
Forward
(to if:(in (to) (empty)))
)
)
Loading/compiling this results in the error: "Couldn't find ludeme class for token 'in'. Couldn't find ludeme class for token 'empty'.". Perhaps this worked in an older version of Ludii, before the super-ludeme "is" was introduced?
Meanwhile, def/rules/play/moves/StepForwardToEmpty.def reads:
(define "StepForwardToEmpty"
(step
Forward
(to if:(is In (to) (sites Empty)))
)
)
This latter version compiles without any error. (Also, I imagine this is functionally equivalent to StepForwardsToEmpty, which is defined in the same directory.)