Refactor toggleCellState function
This commit is contained in:
parent
b1d96efc84
commit
5116aff8a4
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class Simulation {
|
|||
}
|
||||
|
||||
void toggleCellState(int x, int y) {
|
||||
map.get(x, y) == false ? map.set(x, y, true) : map.set(x, y, false);
|
||||
map.set(x, y, !map.get(x, y));
|
||||
}
|
||||
|
||||
Map<int, bool> update() {
|
||||
|
|
Loading…
Reference in a new issue