v3256
This commit is contained in:
parent
bde23cb19f
commit
38abd2b6b6
|
|
@ -1,3 +1,5 @@
|
||||||
|
//Represents a single cell in the grid
|
||||||
|
|
||||||
package backend;
|
package backend;
|
||||||
|
|
||||||
public class Cell {
|
public class Cell {
|
||||||
|
|
@ -7,10 +9,12 @@ public class Cell {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Return the current value of the cell
|
||||||
public int getValue() {
|
public int getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Set the new value of the cell
|
||||||
public void setValue(int value) {
|
public void setValue(int value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue