programgames/blocks/blocks.xtl
Falling blocks, scripted (seed 1), with the rules of Stack.xtl: the well a matrix, a piece a small square of 0s and 1s, turning by reversing and transposing, full rows cleared by keeping the others.
start : (Int, Int, Int, Int, Int, Int, Int, Int, Float, Float, Int)
start ← ˢᵗn̲ew 0
Used in: games/blocks/blocks.xtl:24, waited
ᵘw̲ait : (Num a, Num b) => (Int, Int, Int, Int, Int, Int, Int, Int, Float, Float, a) -> b -> (Int, Int, Int, Int, Int, Int, Int, Int, Float, Float, a)
ᵘw̲ait ← { s n → n = 0 ? s◆ (s ˢᵗt̲ick 0.05) ᵘw̲ait n − 1 }
waited : (Int, Int, Int, Int, Int, Int, Int, Int, Float, Float, Int)
waited ← start ᵘw̲ait 40
Used in: dropped
ᵘp̲ress : (Any a, Num b) => (Int, Int, Int, Int, Int, Int, Int, Int, Float, a, b) -> Char -> (Int, Int, Int, Int, Int, Int, Int, Int, Float, a, b)
ᵘp̲ress ← { s k → s ˢᵗk̲ey k }
dropped : (Int, Int, Int, Int, Int, Int, Int, Int, Float, Float, Int)
dropped ← (((waited ᵘp̲ress "LEFT") ᵘp̲ress "LEFT") ᵘp̲ress "UP") ᵘp̲ress " "
ᵘa̲uto : (Any a, Num b, Num c) => (Int, Int, Int, Int, Int, Int, Int, Int, Float, a, b) -> c -> (Int, Int, Int, Int, Int, Int, Int, Int, Float, a, b)
ᵘa̲uto ← { s n → (n = 0) ∨ 0 < ˢᵗs̲tatus s ? s◆ (s ᵘp̲ress "h") ᵘa̲uto n − 1 }
later : (Int, Int, Int, Int, Int, Int, Int, Int, Float, Float, Int)
later ← dropped ᵘa̲uto 30
Used in: games/blocks/blocks.xtl:43, _