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
7c2f51250b2b26d3f8fd491999e02d25b7870302
parent
815c35f21128ef685c9b63112d87e57a4a0130bc
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-10-26 15:24
fix y/x order

Diffstat

M src/logic.js 2 +-

1 files changed, 1 insertions, 1 deletions


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

@@ -77,7 +77,7 @@ const getFriendlyNeighbors = function(board, x, y, p){
   77    77 export const compareBoards = function(boardA, boardB){
   78    78     for (let y = 0; y < constants.height; y++) {
   79    79         for (let x = 0; x < constants.width; x++) {
   80    -1             if(boardA[x][y] != boardB[x][y]) return false;
   -1    80             if(boardA[y][x] != boardB[y][x]) return false;
   81    81     }}
   82    82     return true;
   83    83 
   83    83 
\ No newline at end of file