- commit
- b2e31880da3be1ae56ec3962f0d29b0861b9daa6
- parent
- 4c4090c77eb71e83242d07dbbc31aa85ce1dbe28
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-10-31 06:17
Gardening (Tabs!)
Diffstat
| M | src/index.js | 12 | ++++++------ |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/index.js b/src/index.js
@@ -67,11 +67,11 @@ on('mousedown', '.board-cell', function(state, event) {
67 67 ) return;
68 68 if (state.game.board[y][x] === currentPlayer) {
69 69 state.game.board[y][x] = constants.EMPTY;
70 -1 if (state.game.tileLimit != null) {
71 -1 state.game.tileLimit ++;
-1 70 if (state.game.tileLimit !== undefined) {
-1 71 state.game.tileLimit += 1;
72 72 }
73 73 } else if (state.game.board[y][x] === constants.EMPTY) {
74 -1 if (state.game.tileLimit) {
-1 74 if (state.game.tileLimit !== undefined) {
75 75 if (state.game.tileLimit < 1) return;
76 76 state.game.tileLimit -= 1;
77 77 }
@@ -145,9 +145,9 @@ on('click', '.js-menu-scenario', function(state) {
145 145 board: clone(scenarios[i].board),
146 146 description: scenarios[i].description,
147 147 winCondition: scenarios[i].winCondition,
148 -1 tileLimit: scenarios[i].tileLimit,
149 -1 limitBuildSpaceA: scenarios[i].limitBuildSpaceA,
150 -1 limitBuildSpaceB: scenarios[i].limitBuildSpaceB,
-1 148 tileLimit: scenarios[i].tileLimit,
-1 149 limitBuildSpaceA: scenarios[i].limitBuildSpaceA,
-1 150 limitBuildSpaceB: scenarios[i].limitBuildSpaceB,
151 151 currentPlayer: 1,
152 152 playing: false,
153 153 steps: 0,