game-of-death

antagonistic game of life  https://xi.github.io/game-of-death/
git clone https://git.ce9e.org/game-of-death.git

commit
9542792ee6b028020b8714f81c9aa66900dacc71
parent
b180b13e0294d27cc02235a0fa0f7686fa0b5e6e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-10-26 19:16
change winCOnditions to use round boundaries

Diffstat

M scenarios/01_01survive.js 2 +-
M scenarios/gun.js 2 +-

2 files changed, 2 insertions, 2 deletions


diff --git a/scenarios/01_01survive.js b/scenarios/01_01survive.js

@@ -10,7 +10,7 @@ export default {
   10    10         if (logic.compareBoards(scenBoard, state.game.board)) {
   11    11             return false;
   12    12         }
   13    -1         if (state.game.turnCounter > 100) {
   -1    13         if (state.game.turnCounter >= 100) {
   14    14             return true;
   15    15         }
   16    16     },

diff --git a/scenarios/gun.js b/scenarios/gun.js

@@ -8,7 +8,7 @@ export default {
    8     8         if (logic.countPlayer(state.game.board, 3) === 0) {
    9     9             return false;
   10    10         }
   11    -1         if (state.game.turnCounter > 300) {
   -1    11         if (state.game.turnCounter >= 300) {
   12    12             return true;
   13    13         }
   14    14     },