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
0ba103429a36456b903c9691430c54007fbcb8a0
parent
c718d1b2abc1a0578c79e03644fd41dd794f7c4d
Author
radow <masteroftheriddles@googlemail.com>
Date
2019-10-26 13:06
reference.md & gaia fix

Diffstat

A references.md 3 +++
M src/logic.js 1 +

2 files changed, 4 insertions, 0 deletions


diff --git a/references.md b/references.md

@@ -0,0 +1,3 @@
   -1     1 # References
   -1     2 https://www.shutterstock.com/de/image-vector/abstract-structure-circuit-computer-cube-technology-1193517421
   -1     3 https://previews.123rf.com/images/moovstock/moovstock1712/moovstock171200036/90913018-moving-purple-cubes-background-3d-rendering.jpg

diff --git a/src/logic.js b/src/logic.js

@@ -39,6 +39,7 @@ export const calculateNextGen = function(state) {
   39    39     // Conflate all playerevolutions by clearing tiles that would be claimed by multiple players
   40    40     for (let y = 0; y < constants.height; y++) {
   41    41         for (let x = 0; x < constants.width; x++) {
   -1    42             if(board[y][x] == constants.GAIA) continue;
   42    43             let empty = true;
   43    44             board[y][x] = constants.EMPTY;
   44    45             for (let p = 1; p < constants.playerCount; p++) {