git ignore dist dir

This commit is contained in:
Sorrel Bri 2020-05-23 23:44:39 -07:00
parent ea42beed13
commit f46b72f6db
4 changed files with 3 additions and 4 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
dist/*

1
dist/app.bundle.js vendored

File diff suppressed because one or more lines are too long

1
dist/index.html vendored
View file

@ -1 +0,0 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Game of Life</title></head><body><h1>Game of Life</h1><aside id="controls"></aside><main id="game-field"></main><script src="app.bundle.js"></script></body></html>

View file

@ -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;