first commit

This commit is contained in:
Stefano Rossi 2025-07-10 03:45:41 +02:00
commit b827bb4ce6
Signed by: chadmin
GPG key ID: 9EFA2130646BC893
14 changed files with 673 additions and 0 deletions

35
GoL3D1/cellula.pde Normal file
View file

@ -0,0 +1,35 @@
public class Cellula{
private int x, y, z; //posizione nella matriche
private boolean living, willlive;
public Cellula(int x, int y, int z){
this.x = x;
this.y = y;
this.z = z;
living = false;
willlive = false;
}
public boolean isLiving(){
return living;
}
public boolean getWilllive(){
return willlive;
}
public void setLiving(boolean living){
this.living = living;
}
public void setWilllive(boolean willlive){
this.willlive = willlive;
}
public int[] getCoords(){
int[] pos = { x, y, z};
return pos;
}
}