ChineseFinalScorer implements FinalScorer { @Override public double score() { return score(board); } ChineseFinalScorer(Board board, double komi); @Override double getKomi(); @Override double score(); @Override Color winner(); @Override double score(Board boardToScore);  }
@Test public void testScoreCorner() { String[] diagram = { "#####", "#####", "#####", "#####", "####.", }; board.setUpProblem(diagram, BLACK); assertEquals(25, scorer.score(), 0.01); }
@Test public void testScore() { String[] diagram = { "###..", "#..#.", ".##OO", ".OO.O", ".OOO.", }; board.setUpProblem(diagram, BLACK); assertEquals(-1, scorer.score(), 0.01); }
@Test public void testScoreOnePoint() { String[] diagram = { "..#..", ".#.#.", "..#..", ".....", "O....", }; board.setUpProblem(diagram, BLACK); assertEquals(4, scorer.score(), 0.01); }