@Test public void testToString() { assertTrue( board.fits(0, L4, 0, 1)); board.add(L4, 0, 1); assertFalse( board.fits(0, L4, 1, 3)); assertFalse( board.fits(0, L4, 1, 4)); assertFalse( board.fits(0, L4, 2, 3)); assertTrue( board.fits(0, L4, 2, 4)); board.add(L4, 2, 4); Log.d(tag, board.toString(8)); }
public String toString() { return toString(size); }
Board { public String toString() { return toString(size); } }
Board { public String toString() { return toString(size); } Board(int color); }
Board { public String toString() { return toString(size); } Board(int color); Piece findPieceByType(String type); void add( Piece piece, int i, int j); int scoreSeedsIfAdding(Piece piece, int i, int j); boolean outside(Square s, int i, int j); boolean overlaps( int color, Piece piece, int i, int j); boolean fits( int color, Piece piece, int i, int j); boolean onseed( Piece piece, int i, int j); String toString(); String toString(int jmax); List<Square> seeds(); }
Board { public String toString() { return toString(size); } Board(int color); Piece findPieceByType(String type); void add( Piece piece, int i, int j); int scoreSeedsIfAdding(Piece piece, int i, int j); boolean outside(Square s, int i, int j); boolean overlaps( int color, Piece piece, int i, int j); boolean fits( int color, Piece piece, int i, int j); boolean onseed( Piece piece, int i, int j); String toString(); String toString(int jmax); List<Square> seeds(); static final String tag; public int color; public int size; public List<Piece> pieces; public int nbPieces; public int score; public boolean over; }