Game of Life
Simulate Conway's Game of Life step by step and generate the resulting grid as text.
Game of Life
Conway's Game of Life is a classic cellular automaton: a grid of cells, alive or dead, evolving one generation at a time under three rules. A live cell with two or three live neighbors survives, a dead cell with exactly three live neighbors is born, and every other cell dies or stays dead. This tool runs the simulation in your browser and prints the result as a plain-text grid, ready to paste into a README, a forum post or a terminal.
Pick a starting pattern from the classic set — glider, blinker, toad, beacon and pulsar — switch to random for a fresh board each run, or choose custom to draw your own. A custom pattern is rows separated by a slash (or a line break), using the characters set by the custom pattern format, either "." and "#" or "0" and "1". Width, height and generations set the grid size and how many steps the simulation runs; wrap edges turns the grid into a torus, so a shape that would run off the border reappears on the opposite side instead of dying at the wall.
By default the output shows only the final generation. Batch mode instead prints every generation from the start, each labeled with its step number and separated by a blank line, so you can follow the evolution or copy a single step. The output format sets which characters represent alive and dead cells — dots, digits or small blocks. An invalid pattern, such as mismatched row lengths or a shape larger than the grid, produces a plain-language error instead of a broken result.
Everything runs locally in your browser; nothing you generate is sent anywhere. Copy the result, download it as a .txt file, or send it back into the input to keep exploring.