Module:Chessboard mxn/Sandbox: Difference between revisions

Content deleted Content added
1-index arrays in Lua. Also comment more stuff
Remove /, but keep spaces
Line 134:
for srow in string.gmatch("/" .. fen, "/%w+") do
srow = srow:gsub("/","") -- clean up row
srow = srow:gsub("%s*","") -- remove flags after board
-- Loop over all letters and numbers in the row
-- Since Lua regexes do not have the | operator, we have