@Test public void testnumofSide() { int N = 5; MutableBoard board = new MutableBoard(N); assertEquals(25, board.numOfSide(WHITE)); board.set(0, 2, RED); board.set(1, 3, BLUE); board.set(2, 3, RED); board.set(3, 4, BLUE); assertEquals(2, board.numOfSide(RED)); assertEquals(2, board.numOfSide(BLUE)); }
abstract int numOfSide(Side color);
Board extends Observable { abstract int numOfSide(Side color); }
Board extends Observable { abstract int numOfSide(Side color);  }
Board extends Observable { abstract int numOfSide(Side color);  Square[] getData(); @Override String toString(); boolean winningCond(); String toDisplayString(); int neighborePos(int n, Direction pos); }
Board extends Observable { abstract int numOfSide(Side color);  Square[] getData(); @Override String toString(); boolean winningCond(); String toDisplayString(); int neighborePos(int n, Direction pos);  }