summaryrefslogtreecommitdiff
path: root/dot.lua
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-11-07 23:02:15 +0100
committerAki <please@ignore.pl>2024-11-07 23:04:34 +0100
commita2ebf3467acc703a883403c95eeea28da06c3ca1 (patch)
tree48c68de3c78f75be83cdd0a54ae7321e13b99390 /dot.lua
parentd4dd6baae7ec7d4c02d978762cf4dd99b83ec04a (diff)
downloadnoita-eyes-a2ebf3467acc703a883403c95eeea28da06c3ca1.zip
noita-eyes-a2ebf3467acc703a883403c95eeea28da06c3ca1.tar.gz
noita-eyes-a2ebf3467acc703a883403c95eeea28da06c3ca1.tar.bz2
Calculate minimum distances to meaningful nodes in transformation graph
Diffstat (limited to 'dot.lua')
-rwxr-xr-xdot.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/dot.lua b/dot.lua
index 8ef5685..b9c6fee 100755
--- a/dot.lua
+++ b/dot.lua
@@ -1,10 +1,7 @@
#!/usr/bin/env lua
local automaton = require "automaton"
-local init = {}
-for i=1, 25 do
- table.insert(init, i)
-end
-init = automaton(init)
+local generate = require "generate"
+local init = automaton(generate.trange(1, 25))
local function dump_edges (state, prefix, color)