ChinesePlayoutScorer implements PlayoutScorer { @Override public Color winner() { final double score = score(); if (score > 0) { return BLACK; } else if (score < 0) { return WHITE; } return VACANT; } ChinesePlayoutScorer(Board board, double komi); @Override double getKomi(); @Override double score(); @Override Color winner();  }
@Test public void testWinner() { String[] before = { ".#OO.", "###OO", ".#.O.", "##OOO", "OOO.O", }; board.setUpProblem(before, WHITE); assertEquals(WHITE, scorer.winner()); }