Polyman Documentation - v2.2.2
    Preparing search index...

    Function getMainSolution

    • Gets the MA (main correct) solution from solutions array.

      Parameters

      Returns LocalSolution

      The MA (main correct) solution

      If no MA solution found (should never happen if ensureMainSolutionExists called first)

      const mainSolution = getMainSolution(config.solutions);
      // Returns: { name: 'main', source: 'Solution.cpp', tag: 'MA' }