FANDOM


current.GetExplorationMultiplier Edit

Function
number current.GetExplorationMultipliernone
Description
Deprecated function, previously used with exploration mode puzzles.
V1 Function Name
none
More Information
Details

Remarks Edit

The function current.GetExplorationMultiplier is deprecated. See http://fold.it/portal/node/2000436 for details.

Examples Edit

Many older recipes use this function to determine whether a puzzle is "normal" or "exploration".

normal = ( current.GetExplorationMultiplier () == 0 )

If the exploration multiplier is zero, the puzzle is "normal", with no bonus for exploration. In current versions of foldit, GetExplorationMultiplier always returns zero, so all puzzles are "normal".

Some recipes used this function to adjust the score returned by the GetEnergyScore function:

function Score ( pose )
    local total = pose.GetEnergyScore ()
    if normal then
        return total
    else
        return total * pose.GetExplorationMultiplier ()
    end
end

Other recipes used GetScore function for exploration puzzles:

function Score()
    local s = 0
    if normal == true then
        s = current.GetEnergyScore ()
    else
        s = current.GetScore ()
    end
    return s
end

Older recipes using the foldit LUA V1 interface used get_ranked_score:

function Score()
    local s = 0
    if normal == true then
        s = get_score ( true )
    else
        s = get_ranked_score ( true )
    end
    return s
end

The preferred scoring functions are current.GetEnergyScore for foldit LUA v2, or get_score for foldit LUA v1.

The functions shown above could be rewritten with a single call the preferred scoring function:

function Score()
    local s = 0
    s = current.GetEnergyScore ()
    return s
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.