Module:Chessboard mxn/Sandbox: Difference between revisions

Content deleted Content added
Remove /, but keep spaces
Swap lines, so comment is in correct place
Line 157:
if pstart == index then
piece = srow:sub(pstart, pstart)
-- l: White (light); d: Black (dark)
index = pstart + 1
-- l: White (light); d: Black (dark)
local color = piece:match( '%u' ) and 'l' or 'd'
piece = piece:lower()