Skip to content

Commit b4a7743

Browse files
authored
Update life.js
1 parent b44276b commit b4a7743

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

public/life.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
/**
2-
* < 2 neighbors: die
3-
* 2 <= x <= 3: live
4-
* > 3: die
5-
* dead and 3 neighbor -> live
6-
*/
71
const targetElement = document.getElementById('life')
82

93
const PADDING = 5
104
const DISPLAY_WIDTH = 48
11-
const DISPLAY_HEIGHT = 24
5+
const DISPLAY_HEIGHT = 16
126
const WIDTH = DISPLAY_WIDTH + 2 * PADDING
137
const HEIGHT = DISPLAY_HEIGHT + 2 * PADDING
148

0 commit comments

Comments
 (0)