created Table

This commit is contained in:
Guillaume BONABAU 2024-04-10 15:03:21 +02:00 committed by g le-chartier
parent 88a11b26bc
commit d21cb1b21e
1 changed files with 23 additions and 0 deletions

23
src/backend/Table.java Normal file
View File

@ -0,0 +1,23 @@
package backend;
import java.util.ArrayList;
public class Table {
int vertexCount = 3;
ArrayList<ArrayList<Cell>> table = new ArrayList<>(vertexCount);
//TODO : create constructor
public int getCell(int x,int y) {
return table.get(x).add(y);
}
//TODO : get(xy)
//TODO : set(xy)
//TODO : count around (xy) -> return how many around this cell
//TODO : step : apply game rules for 1 tick ()
//TODO : set agent (xy)
//TODO : set random (density)
//TODO : load(filepath)
//TODO : save(filename)
}