class ChinesePlayoutScorer implements PlayoutScorer {

	@Override
	public double score() {
		final CoordinateSystem coords = board.getCoordinateSystem();
		double result = komi;
		for (final short p : coords.getAllPointsOnBoard()) {
			final Color color = board.getColorAt(p);
			if (color == BLACK) {
				result++;
			} else if (color == WHITE) {
				result--;
			} else {
				if (board.hasMaxNeighborsForColor(BLACK, p)) {
					result++;
				} else if (board.hasMaxNeighborsForColor(WHITE, p)) {
					result--;
				}
			}
		}
		return result;
	}

	public  ChinesePlayoutScorer(Board board, double komi);

}