Fix not carrying width and height in Simulation

This commit is contained in:
Marty Oehme 2018-08-30 10:58:55 +02:00
parent 227357a745
commit b95d39d2b4

View file

@ -20,6 +20,9 @@ class Simulation {
int _dispersal;
CellPattern _pattern;
int get w => map.width;
int get h => map.height;
Simulation(int w, int h) : this.map = new Grid.fill(w, h, _getGOLCell()) {
print("Grid creation finished");
}