StoneCountObserver implements BoardObserver { public int getCount(StoneColor color) { return counts[color.index()]; } StoneCountObserver(Board board, Scorer scorer); @Override void clear(); @Override void copyDataFrom(BoardObserver that); int getCount(StoneColor color); StoneColor mercyWinner(); @Override void update(StoneColor color, short location,
			ShortList capturedStones);  }
@Test public void testCount() { String[] diagram = { "##.#O", "OO.O.", "....O", ".#...", ".#...", }; board.setUpProblem(diagram, WHITE); board.play("c5"); assertEquals(2, counter.getCount(BLACK)); assertEquals(6, counter.getCount(WHITE)); }