programgames/dungeon/dungeon.xtl
The dungeon, scripted (seed 1), with the rules of Crawl.xtl on lib/Ecs: the world as a matrix, what each entity is as the components it has, and every rule as one expression over all of them.
ᵘw̲alk : Num a => (Float, Int, a, Char, Int) -> Float -> (Float, Int, a, Char, Int)
ᵘw̲alk ← { s D → 0 = t̲ally D ? s◆ (s ᶜʳt̲urn f̲irst D) ᵘw̲alk 1 d̲rop D }
walked : (Float, Int, Int, Char, Int)
walked ← start ᵘw̲alk 6 2 r̲eshape 0 1 0 1 1 0 1 0 0 -1 0 -1.0
ᵘw̲orld : (Any a, Any b, Any c, Any d, Any e) => (a, b, c, d, e) -> a
ᵘw̲orld ← { (W, g, n, m, lv) → W }
Used in: _