Function adjust_estimate

  • Adjust Estimate to account for Ruleset (i.e. territory vs area) and captures

    Parameters

    • engine: GobanEngine

      Go engine is required because the ruleset is taken into account

    • board: JGOFNumericPlayerColor[][]

      the current board state

    • area_map: number[][]

      Representation of the ownership, 1=Black, -1=White, 0=Undecided using Area rules

    • score: number

      estimated score (not accounting for captures)

    Returns {
        ownership: Matrix<number>;
        score: number;
    }

    • ownership: Matrix<number>
    • score: number