06-30-2020, 09:18 PM
The definition of StepForwardToEmpty in section A.6.1 of the Ludii Language Reference doesn't match the implementation in rules/play/moves/StepForwardToEmpty.def. It's the Language Reference that is out of date.
06-30-2020, 09:18 PM
The definition of StepForwardToEmpty in section A.6.1 of the Ludii Language Reference doesn't match the implementation in rules/play/moves/StepForwardToEmpty.def. It's the Language Reference that is out of date.
06-30-2020, 10:44 PM
Hi Jay,
The definition and description in the LLR appear to match for me. Might you be confusing "StepForwardToEmpty" with "StepForwardsToEmpty"? Regards, Cameron
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.) |
|