Jump to content

Module:Sandbox/SD0001/Chess pgn

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SD0001 (talk | contribs) at 03:37, 31 December 2023. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local pgnModule = require('Module:Pgn')

local p = {}

p.pgnToFen = function (pgn)
	metadata, moves = pgnModule.main(pgn)
	return moves[#moves]
end

return p