git ignore dist dir
This commit is contained in:
parent
ea42beed13
commit
f46b72f6db
4 changed files with 3 additions and 4 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
dist/*
|
1
dist/app.bundle.js
vendored
1
dist/app.bundle.js
vendored
File diff suppressed because one or more lines are too long
1
dist/index.html
vendored
1
dist/index.html
vendored
|
@ -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>
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue