FANDOM


puzzle.GetPuzzleID

Function
string puzzle.GetPuzzleID()
Description
Get the ID Number of the puzzle.
V1 Function Name
New to V2

puzzle.GetPuzzleID returns the numeric identifier for the current puzzle.

The code:

print ( "puzzle id: " .. puzzle.GetPuzzleID () )

might produce the output:

puzzle id: 2004548

The puzzle id is padded on the left with zeroes to 10 spaces, and used to name a subdirectory of the puzzles directory for the current Foldit client, for example:

C:\Foldit\puzzles\0002004548\

This subdirectory is used to save solution files.

The puzzle id (without padding) is also the "node" of the puzzle page on the Foldit website, for example:

https://fold.it/portal/node/2004548
Community content is available under CC-BY-SA unless otherwise noted.