Skip to content

Commit

Permalink
Vanguard added + autoindent
Browse files Browse the repository at this point in the history
  • Loading branch information
ericp authored and ericp committed Oct 29, 2024
1 parent 74da701 commit e94dbaa
Show file tree
Hide file tree
Showing 43 changed files with 6,432 additions and 5,710 deletions.
156 changes: 78 additions & 78 deletions Common/res/lud/board/race/reach/Spinimax.lud
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
(define "MinMajStacking"
(if
(and (is Flat (site)) (and {(< (count SitesPlatformBelow P1) (count SitesPlatformBelow P2)) (< (count SitesPlatformBelow P1) (count SitesPlatformBelow P3))}))
(add (piece "Ball1") (to (site)))
(if
(and (is Flat (site)) (and {(< (count SitesPlatformBelow P2) (count SitesPlatformBelow P1)) (< (count SitesPlatformBelow P2) (count SitesPlatformBelow P3))}))
(add (piece "Ball2") (to (site)))
(if
(and (is Flat (site)) (and {(< (count SitesPlatformBelow P3) (count SitesPlatformBelow P1)) (< (count SitesPlatformBelow P3) (count SitesPlatformBelow P2))}))
(add (piece "Ball3") (to (site)))
(if
(and (is Flat (site)) (and {(> (count SitesPlatformBelow P1) (count SitesPlatformBelow P2)) (> (count SitesPlatformBelow P1) (count SitesPlatformBelow P3))}))
(add (piece "Ball1") (to (site)))
(if
(and (is Flat (site)) (and {(> (count SitesPlatformBelow P2) (count SitesPlatformBelow P1)) (> (count SitesPlatformBelow P2) (count SitesPlatformBelow P3))}))
(add (piece "Ball2") (to (site)))
(if
(and (is Flat (site)) (and {(> (count SitesPlatformBelow P3) (count SitesPlatformBelow P1)) (> (count SitesPlatformBelow P3) (count SitesPlatformBelow P2))}))
(add (piece "Ball3") (to (site)))
)
)
)
)
)
)
(if
(and (is Flat (site)) (and {(< (count SitesPlatformBelow P1) (count SitesPlatformBelow P2)) (< (count SitesPlatformBelow P1) (count SitesPlatformBelow P3))}))
(add (piece "Ball1") (to (site)))
(if
(and (is Flat (site)) (and {(< (count SitesPlatformBelow P2) (count SitesPlatformBelow P1)) (< (count SitesPlatformBelow P2) (count SitesPlatformBelow P3))}))
(add (piece "Ball2") (to (site)))
(if
(and (is Flat (site)) (and {(< (count SitesPlatformBelow P3) (count SitesPlatformBelow P1)) (< (count SitesPlatformBelow P3) (count SitesPlatformBelow P2))}))
(add (piece "Ball3") (to (site)))
(if
(and (is Flat (site)) (and {(> (count SitesPlatformBelow P1) (count SitesPlatformBelow P2)) (> (count SitesPlatformBelow P1) (count SitesPlatformBelow P3))}))
(add (piece "Ball1") (to (site)))
(if
(and (is Flat (site)) (and {(> (count SitesPlatformBelow P2) (count SitesPlatformBelow P1)) (> (count SitesPlatformBelow P2) (count SitesPlatformBelow P3))}))
(add (piece "Ball2") (to (site)))
(if
(and (is Flat (site)) (and {(> (count SitesPlatformBelow P3) (count SitesPlatformBelow P1)) (> (count SitesPlatformBelow P3) (count SitesPlatformBelow P2))}))
(add (piece "Ball3") (to (site)))
)
)
)
)
)
)
)

(define "StackIfPlatform"

(forEach Site
(sites Layer 1)
"MinMajStacking"
(then
(forEach Site
(sites Layer 2)
"MinMajStacking"
(then
(forEach Site
(sites Layer 3)
"MinMajStacking"
)
)
)
)
)
(forEach Site
(sites Layer 1)
"MinMajStacking"
(then
(forEach Site
(sites Layer 2)
"MinMajStacking"
(then
(forEach Site
(sites Layer 3)
"MinMajStacking"
)
)
)
)
)
)

//------------------------------------------------------------------------------
Expand All @@ -55,50 +55,50 @@
})

(rules
(play
(move Add
(to
(sites Empty)
if:(is Flat)
)
(then
"StackIfPlatform"
)
)
)

(end {
(if
(and (= (count Pieces in:(sites Occupied by:All)) 30) (= (who at:15) 1))
(result P1 Win)
(play
(move Add
(to
(sites Empty)
if:(is Flat)
)
(then
"StackIfPlatform"
)
)
(if
(and (= (count Pieces in:(sites Occupied by:All)) 30) (= (who at:15) 2))
(result P2 Win)
)

(end {
(if
(and (= (count Pieces in:(sites Occupied by:All)) 30) (= (who at:15) 1))
(result P1 Win)
)
(if
(and (= (count Pieces in:(sites Occupied by:All)) 30) (= (who at:15) 3))
(result P3 Win)
(if
(and (= (count Pieces in:(sites Occupied by:All)) 30) (= (who at:15) 2))
(result P2 Win)
)
})
(if
(and (= (count Pieces in:(sites Occupied by:All)) 30) (= (who at:15) 3))
(result P3 Win)
)
})
)
)

//------------------------------------------------------------------------------

(metadata

(info
{
}
)

(graphics {
(piece Scale "Ball" 1.0)
(board Style Shibumi)
(piece Colour P1 fillColour:(colour White))
(piece Colour P2 fillColour:(colour Black))
(piece Colour P3 fillColour:(colour Red))
})

)
(info
{
}
)

(graphics {
(piece Scale "Ball" 1.0)
(board Style Shibumi)
(piece Colour P1 fillColour:(colour White))
(piece Colour P2 fillColour:(colour Black))
(piece Colour P3 fillColour:(colour Red))
})

)
6 changes: 3 additions & 3 deletions Common/res/lud/board/race/reach/Stairs.lud
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
//-------------------------------------------------------------------------

(metadata
(info {
})
(info {
})
(graphics
{
(stackType DefaultAndCount 0.8)
Expand Down
Loading

0 comments on commit e94dbaa

Please sign in to comment.