Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument labels in nested symbols #19

Open
PadLex opened this issue Jun 25, 2023 · 1 comment
Open

Argument labels in nested symbols #19

PadLex opened this issue Jun 25, 2023 · 1 comment

Comments

@PadLex
Copy link
Contributor

PadLex commented Jun 25, 2023

This extract is from Mweiso.lud

and {
    if:(if ("SameTurn")
        (< 0 (count at:(from)))
        (< 1 (count at:(from)))
    )
    (is In (from) (sites {(mapEntry "LeftMostOuter" Mover) (mapEntry "SecondLeftInner" Mover)}))
    (is In ("NextHole" (from) "TrackCW" (count at:(from))) (sites Mover "Inner"))
    (is Occupied ("OppositePit" ("NextHole" (from) "TrackCW" (count at:(from)))))
    (is Occupied ("OppositeOuterPit" ("NextHole" (from) "TrackCW" (count at:(from)))))
}

Is the if: label intentional in if:(if ("SameTurn")? I'm struggling to grasp why a label might be in an array. The game compiles just fine without it and, as far as I can tell, plays identically.

If it was a mistake I can make a pull request to remove every occurance

@epiette
Copy link
Collaborator

epiette commented Jun 26, 2023

Yes, this is probably an artefact from copy and paste.
Feel free to submit a pull request and I will accept it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants