Line 9:
Line 9:
!colspan="3"|<span style="float:left;padding-left:10px;">Branching Rules</span>
!colspan="3"|<span style="float:left;padding-left:10px;">Branching Rules</span>
|-
|-
−
!colspan="2"|Nodes||Rules
+
!colspan="2"|Nodes||Rules]],
−
]],
−
table_footer = "\n|}",
+
table_footer = "|}",
table_row_start = [[|-
table_row_start = [[|-
Line 67:
Line 66:
end
end
local rows = {}
local rows = {}
+
table.insert(rows, templates.table_header)
for _, from in ipairs(branching.index) do
for _, from in ipairs(branching.index) do
table.insert(rows, format{
table.insert(rows, format{
Line 84:
Line 84:
end
end
end
end
−
return templates.table_header .. table.concat(rows, "\n") .. templates.table_footer
+
table.insert(rows, templates.table_footer)
+
return table.concat(rows, "\n")
end
end
Line 94:
Line 95:
end
end
−
MapBranchingTable.t = MapBranchingTable.format(nil, { ["0 -> 1"] = "Fixed route", ["1 -> B/green"] = "Random", ["1 -> C"] = "Random" })
+
-- MapBranchingTable.t = MapBranchingTable.format(nil, { ["0 -> 1"] = "Fixed route", ["1 -> B/green"] = "Random", ["1 -> C"] = "Random" })
return MapBranchingTable
return MapBranchingTable