SgfParser { public List<Short> parseGameFromFile(File file) { final List<List<Short>> games = parseGamesFromFile(file, MAX_VALUE); return games.get(0); } SgfParser(CoordinateSystem coords, boolean breakOnFirstPass); @SuppressWarnings("boxing") static void main(String[] args); void sgfToBoard(String filepath, Board board); void sgfToBoard(File file, Board board); List<Short> parseGameFromFile(File file); List<List<Short>> parseGamesFromFile(File file, int maxBookDepth); short sgfToPoint(String label);  }
@Test public void testBreakOnPass(){ List<Short> moves = parser.parseGameFromFile(new File("sgf-test-files/19/Orego4-Magisus.sgf")); assertEquals(174, moves.size()); parser = new SgfParser(coords, false); moves = parser.parseGameFromFile(new File("sgf-test-files/19/Orego4-Magisus.sgf")); assertEquals(254, moves.size()); }