Skip to content
Snippets Groups Projects
Commit 607ff9c0 authored by SAIDI Hatim's avatar SAIDI Hatim
Browse files

test

parent 82b7260a
No related branches found
No related tags found
No related merge requests found
package model;
public class ArrayGrid implements Grid{
private Cell[][] cells;
private final int numberOfRows ;
private final int numberOfColumns ;
public ArrayGrid(int numberOfRows,int numberOfColumns){
this.numberOfRows = numberOfRows;
this.numberOfColumns = numberOfColumns;
this.cells[numberOfRows][numberOfColumns]=new SquareCell();
try {
System.out.println(numberOfColumns<0 || numberOfRows<0);
}catch (IllegalArgumentException e){
System.out.println(e);
}
}
}
...@@ -36,5 +36,4 @@ public class SquareCell extends AbstractCell { ...@@ -36,5 +36,4 @@ public class SquareCell extends AbstractCell {
this.neighbours.set(i,cells.get(i)); this.neighbours.set(i,cells.get(i));
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment