Documentation mismatch for StepForwardToEmpty (v0.9.3) - Printable Version +- Ludii Forum (https://ludii.games/forums) +-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5) +--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6) +--- Thread: Documentation mismatch for StepForwardToEmpty (v0.9.3) (/showthread.php?tid=79) |
Documentation mismatch for StepForwardToEmpty (v0.9.3) - JayCoskey - 06-30-2020 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. RE: Documentation mismatch for StepForwardToEmpty (v0.9.3) - cambolbro - 06-30-2020 Hi Jay, The definition and description in the LLR appear to match for me. Might you be confusing "StepForwardToEmpty" with "StepForwardsToEmpty"? Regards, Cameron RE: Documentation mismatch for StepForwardToEmpty (v0.9.3) - JayCoskey - 07-02-2020 Section A.6.1 of the version of the LLR at https://ludii.games/downloads/LudiiLanguageReference.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.) |