Refactor toggleCellState function

This commit is contained in:
Unknown 2018-10-23 20:31:44 +02:00
parent b1d96efc84
commit 5116aff8a4
1 changed files with 1 additions and 1 deletions

View File

@ -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() {