11-11-2020, 09:35 PM
Do you have an example .lud file that uses the <layers> ludeme?
Is this correct, incomplete, syntax for a 27 cell 3x3x3 game board?:
(game "Qua"
(players 3)
(equipment {
( board (layers 3 (square 3)) )
(piece "Disc" P1)
(piece "Square" P2)
(piece "Triangle" P3)
}
)
)
?
Do the absolute directions U and D refer to the direction between layers?
How do I specify regions that cross layers that belong to the three players in "Qua"?
Would this work:
(regions P1 { (sites N) (sites S) } )
(regions P2 { (sites E) (sites W) } )
(regions P3 { (sites U) (sites D) } )
?
Are the cells in adjacent layers that are in the same location adjacent to each other?
If I want to prefill cells in a layer with a player's piece, how do I reference those locations? I would like to do something similar to what was done for Gale:
(start
{
(place "Disc" (forEach (sites Board) if:(and (and (is Even (column of:(site))) (is Odd (row of:(site))) ) (or (is layer of:1) (is layer of:3) ) ))
(place "Square" (forEach (sites Board) if:(and (and (is Even (row of:(site))) (is Odd (column of:(site))) ) (or (is layer of:1) (is layer of:3) ) ))
(place "Triangle" (forEach (sites Board) if:(and (and (is Odd (row of:(site))) (is Odd (column of:(site))) ) (is layer of:2) ) ))
}
)
Also, what does the <makeFaces> ludeme do? Can this be used to create faces across layers?
Is this correct, incomplete, syntax for a 27 cell 3x3x3 game board?:
(game "Qua"
(players 3)
(equipment {
( board (layers 3 (square 3)) )
(piece "Disc" P1)
(piece "Square" P2)
(piece "Triangle" P3)
}
)
)
?
Do the absolute directions U and D refer to the direction between layers?
How do I specify regions that cross layers that belong to the three players in "Qua"?
Would this work:
(regions P1 { (sites N) (sites S) } )
(regions P2 { (sites E) (sites W) } )
(regions P3 { (sites U) (sites D) } )
?
Are the cells in adjacent layers that are in the same location adjacent to each other?
If I want to prefill cells in a layer with a player's piece, how do I reference those locations? I would like to do something similar to what was done for Gale:
(start
{
(place "Disc" (forEach (sites Board) if:(and (and (is Even (column of:(site))) (is Odd (row of:(site))) ) (or (is layer of:1) (is layer of:3) ) ))
(place "Square" (forEach (sites Board) if:(and (and (is Even (row of:(site))) (is Odd (column of:(site))) ) (or (is layer of:1) (is layer of:3) ) ))
(place "Triangle" (forEach (sites Board) if:(and (and (is Odd (row of:(site))) (is Odd (column of:(site))) ) (is layer of:2) ) ))
}
)
Also, what does the <makeFaces> ludeme do? Can this be used to create faces across layers?
Best Regards,
Woody
Woody