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:36, 31 December 2023 (Created page with 'local pgn = require('Module:Pgn') local p = {} p.pgnToFen = function (pgn) metadata, moves = pgn.main(pgn) return moves[#moves] end return p'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local pgn = require('Module:Pgn')

local p = {}

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

return p