Skip to content

Commit a390b38

Browse files
committed
Added Gosper's Glider Gun
1 parent 620657a commit a390b38

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import './index.css';
44
import GameOfLife from './GameOfLife';
55
import * as serviceWorker from './serviceWorker';
66

7-
const gliderPopulation = [[1, 0], [2, 1], [0, 2], [1, 2], [2, 2],]
7+
// const gliderPopulation = [[1, 0], [2, 1], [0, 2], [1, 2], [2, 2],]
8+
const gliderPopulation = [[5, 1], [5, 2], [6, 1], [6, 2], [5, 11], [6, 11], [7, 11], [4, 12], [3, 13], [3, 14], [8, 12], [9, 13], [9, 14], [6, 15], [4, 16], [5, 17], [6, 17], [7, 17], [6, 18], [8, 16], [3, 21], [4, 21], [5, 21], [3, 22], [4, 22], [5, 22], [2, 23], [6, 23], [1, 25], [2, 25], [6, 25], [7, 25], [3, 35], [4, 35], [3, 36], [4, 36],]
89
ReactDOM.render(<GameOfLife
9-
width={20}
10-
height={20}
10+
width={40}
11+
height={40}
1112
startingPopulation={gliderPopulation}
1213
start={true}
1314
border='marquee'

0 commit comments

Comments
 (0)