@Test public void testToFEN() { assertEquals(toFEN(BoardFactory.valueOf(ARRAY, EMPTY)), EMPTY_FEN); assertEquals(toFEN(BoardFactory.valueOf(ARRAY, STARTING)), STANDART_STARTING_FEN); }
public static String toFEN(final Board pEtat) { if (pEtat == null) { throw new NullPointerException("Missing game state"); } final StringBuilder res = new StringBuilder(toFENKey(pEtat)); res.append(' '); res.append(Integer.toString(pEtat.getHalfmoveCount())); res.append(' '); res.append(Integer.toString(pEtat.getFullmoveNumber())); return res.toString(); }
FENUtils { public static String toFEN(final Board pEtat) { if (pEtat == null) { throw new NullPointerException("Missing game state"); } final StringBuilder res = new StringBuilder(toFENKey(pEtat)); res.append(' '); res.append(Integer.toString(pEtat.getHalfmoveCount())); res.append(' '); res.append(Integer.toString(pEtat.getFullmoveNumber())); return res.toString(); } }
FENUtils { public static String toFEN(final Board pEtat) { if (pEtat == null) { throw new NullPointerException("Missing game state"); } final StringBuilder res = new StringBuilder(toFENKey(pEtat)); res.append(' '); res.append(Integer.toString(pEtat.getHalfmoveCount())); res.append(' '); res.append(Integer.toString(pEtat.getFullmoveNumber())); return res.toString(); } private  FENUtils(); }
FENUtils { public static String toFEN(final Board pEtat) { if (pEtat == null) { throw new NullPointerException("Missing game state"); } final StringBuilder res = new StringBuilder(toFENKey(pEtat)); res.append(' '); res.append(Integer.toString(pEtat.getHalfmoveCount())); res.append(' '); res.append(Integer.toString(pEtat.getFullmoveNumber())); return res.toString(); } private  FENUtils(); static Board toBoard(final String pFEN); static String toFEN(final Board pEtat); static String toFENKey(final Board pEtat); }
FENUtils { public static String toFEN(final Board pEtat) { if (pEtat == null) { throw new NullPointerException("Missing game state"); } final StringBuilder res = new StringBuilder(toFENKey(pEtat)); res.append(' '); res.append(Integer.toString(pEtat.getHalfmoveCount())); res.append(' '); res.append(Integer.toString(pEtat.getFullmoveNumber())); return res.toString(); } private  FENUtils(); static Board toBoard(final String pFEN); static String toFEN(final Board pEtat); static String toFENKey(final Board pEtat); static final String STANDART_STARTING_FEN; }