Content deleted Content added
No edit summary |
No edit summary |
||
Line 19:
local result = {}
table.insert(result, string.format([=[
<div class="chess-
[[File:Chessboard480.png|%dx%dpx|link=]]
]=], size * 8, size * 8))
Line 40:
function convertArgsToPosition( args )
-- copies args[3] to args[66] into a 64 entry array of positions
local res = {}
for row = 1,8 do
Line 51 ⟶ 52:
function convertFenToPosition( fen )
-- converts FEN notation to 64 entry array of positions
local res = {}
-- Loop over rows, which are delimited by /
Line 110 ⟶ 112:
else position = convertArgsToPosition( pargs )
end
return table.concat( chessboard(position, size, reverse), "\n")
end
|