Fix toggleCell Function in Simulation
This commit is contained in:
parent
c8e2417ab8
commit
b1d96efc84
2 changed files with 11 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class Simulation {
|
|||
}
|
||||
|
||||
void toggleCellState(int x, int y) {
|
||||
map.get(x, y) == null ? map.set(x, y, true) : map.set(x, y, false);
|
||||
map.get(x, y) == false ? map.set(x, y, true) : map.set(x, y, false);
|
||||
}
|
||||
|
||||
Map<int, bool> update() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue