SgfParser { public short sgfToPoint(String label) { if (label.equals("tt")) { return PASS; } final int c = label.charAt(0) - 'a'; final int r = label.charAt(1) - 'a'; short result = coords.at(r, c); assert coords.isOnBoard(result); return result; } 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 testSgfToPoint() { assertEquals(at("e15"), parser.sgfToPoint("ee")); assertEquals(at("t1"), parser.sgfToPoint("ss")); assertEquals(at("a19"), parser.sgfToPoint("aa")); assertEquals(at("t19"), parser.sgfToPoint("sa")); assertEquals(at("a1"), parser.sgfToPoint("as")); }