Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
local p = {
}
p.f = function(frame)
end
function piecediv(piece, row, file)
local pieceColor = string.match(piece, '%u') and 'l' or 'd'
local filechar = string.sub("abcdefgh", file + 1, file + 1)
local
local img = string.format('[[File:Chess %s%st45.svg|%dx%dpx|alt=%s|%s]]', piece, pieceColor, size, size, alt, alt)
end
function oneRow(s, row)
local file = 0
local result = ''
Line 27 ⟶ 28:
if string.match(piece, "%\d") then
file = file + piece
else
result = result .. piecediv(piece, row, file)
end
end
return result
end
local row = 0
local result = string.format('<div class="chess-fen" style="position:relative;min-width:%dpx;min-height:%dpx;">', size*8,size*8)
|