Module:Chessboard mxn/Sandbox: Difference between revisions

Content deleted Content added
OK, string.match isn’t flexible enough. We have to match only the head of the string, so we have to work with string.find() and string.sub() instead
Remove print() call (I ran this at home first)
Line 135:
srow = srow:gsub("/","")
srow = srow:gsub("%s*","")
print(srow) -- DEBUG
-- Loop over all letters and numbers in the row
-- Since Lua regexes do not have the | operator, we have
Line 172 ⟶ 171:
return res
end
 
 
 
function p.board(frame)