We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b44276b commit b4a7743Copy full SHA for b4a7743
public/life.js
@@ -1,14 +1,8 @@
1
-/**
2
- * < 2 neighbors: die
3
- * 2 <= x <= 3: live
4
- * > 3: die
5
- * dead and 3 neighbor -> live
6
- */
7
const targetElement = document.getElementById('life')
8
9
const PADDING = 5
10
const DISPLAY_WIDTH = 48
11
-const DISPLAY_HEIGHT = 24
+const DISPLAY_HEIGHT = 16
12
const WIDTH = DISPLAY_WIDTH + 2 * PADDING
13
const HEIGHT = DISPLAY_HEIGHT + 2 * PADDING
14
0 commit comments