Workshop › Conway's Game of Life › Step 28 of 32
The most famous pattern: Bill Gosper's glider gun (1970). Conway offered a prize for a pattern that grows forever; this was the answer. 36 cells that shuttle back and forth and fire a new glider every 30 generations.
```js
// Patterns drawn as text: O is a live cell.
const GUN = [
'........................O...........',
'......................O.O...........',
'............OO......OO............OO',
'...........O...O....OO............OO',
'OO........O.....O...OO..............',
'OO........O...O.OO....O.O...........',
'..........O.....O.......O...........',
'...........O...O....................',
'............OO......................',
]
```GUN is a list of 9 texts, 36 characters each: the gun, row by row. O is a big letter O, not a zero.Under the SPEED line, after an empty line, write the comment and GUN.
Skills: Arrays and objects
← Patterns from text Fire the gun →