Game { protected void add( Piece piece, int i, int j) { for(int k=0; k<4; k++) { boards.get(k).add(piece, i, j); } } Game(); void reset(); void historize(Move move); boolean over(); int winner(); boolean replay(List<Move> moves); boolean valid( Move move); boolean valid( Piece piece, int i, int j); boolean fits( Piece p, int i, int j); boolean play(Move move); String toString(); List<Move> deserialize(String msg); int scoreEnemySeedsIfAdding(int color, Piece piece, int i, int j); static final String tag; public List<Board> boards; public int size; public int[] colors; public List<Move> moves; }
@Test public void testAdd() { board.add(L4, 0, 1); }