FANDOM


save.LoadSolution Edit

Function
void save.LoadSolution(solution)
Description
Load a solution.
V1 Function Name
New to V2

save.LoadSolution loads a solution. The solution is in the format returned by save.GetSolutions

In the example below, save.GetSolutions returns a table of solutions sol. If sol is not empty, the last solution returned is loaded using save.LoadSolution.

sol = save.GetSolutions ()


print ( #sol  .. " saved solutions " )

--
--  load the last solution
--
if #sol > 0 then
    save.LoadSolution ( sol [ #sol ] )
end
Community content is available under CC-BY-SA unless otherwise noted.