Chess: Fix notation of "files" (chessboard rows)

This commit is contained in:
Wuzzy 2023-07-14 19:08:34 +02:00
parent c2f641ab62
commit edb0ed7cbf

View File

@ -40,7 +40,7 @@ local function index_to_notation(idx)
return "??"
end
local xstr = letters[x+1] or "?"
local ystr = tostring(y+1) or "?"
local ystr = tostring(9 - (y+1)) or "?"
return xstr .. ystr
end