From b95d39d2b4b13caa7ebd29d48eb5b8ed5f70cd64 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 30 Aug 2018 10:58:55 +0200 Subject: [PATCH] Fix not carrying width and height in Simulation --- lib/src/Simulation.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/Simulation.dart b/lib/src/Simulation.dart index 8261071..7f221ba 100644 --- a/lib/src/Simulation.dart +++ b/lib/src/Simulation.dart @@ -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"); }