diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4be6e16 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist/* \ No newline at end of file diff --git a/dist/app.bundle.js b/dist/app.bundle.js deleted file mode 100644 index 6871e48..0000000 --- a/dist/app.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(i,o,function(e){return n[e]}.bind(null,o));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){"use strict";t.r(e);t(1);t(5)((function(){return console.log("hello world!")}))()},function(n,e,t){var i=t(2),o=t(3);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[n.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);n.exports=o.locals||{}},function(n,e,t){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var n={};return function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(n){t=null}n[e]=t}return n[e]}}(),a=[];function s(n){for(var e=-1,t=0;tGame of Life

Game of Life

\ No newline at end of file diff --git a/src/components/Cell.js b/src/components/Cell.js index 93d4706..c40941d 100644 --- a/src/components/Cell.js +++ b/src/components/Cell.js @@ -1,7 +1,7 @@ class Cell { - constructor(living = false) { + constructor(living = false, liveNeighbors = 0) { this.living = living; - this.liveNeighbors = 0; + this.liveNeighbors = liveNeighbors; } toggleLiving() { this.living = !this.living;