Merge branch 'dev_squ'

This commit is contained in:
Balthazar SQUINABOL 2024-04-10 15:02:31 +02:00
commit 9796d1a7c8
2 changed files with 31 additions and 0 deletions

18
src/backend/Cell.java Normal file
View File

@ -0,0 +1,18 @@
package backend;
public class Cell {
protected int value;
protected int density;
protected Cell(int value, int density) {
this.value = value;
this.density = density;
}
public int getValue() {
return value;
}
public int getDensity() {
return density;
}
}

View File

@ -226,6 +226,19 @@ public class Simulator extends Thread {
// set cell value to !currentCellValue
}
public void countAround(int x, int y) {
//enableLogs
//getCell
//if loopingBorder TRUE, border count as living.
if (loopingBorder == true){
}
else {
}
}
/**
*
* @return lines of file representing