Skip to content
Borregolife laboratory ES · Español

Start here

If you know nothing about the Game of Life, this is your place. With moving examples, here is everything you need to understand the laboratory: what it is, how the rules work, what a nest is, how something can evolve and what each of the six versions does.

Words with a dotted underline have an explanation: tap them and it appears. They are also all together in the glossary at the end of this page. In the examples, the buttons below go one generation forwards or back.

1. A board and some rules

Picture a sheet of squared paper. Each square is a cell, and each cell can be alive (coloured) or dead (empty).

Time moves in jumps, called generations. On every jump, all cells look at their neighbours at the same time, the 8 around them, and depending on how many are alive they decide what happens: whether they stay alive, die or a new cell is born. The rule that decides it is the same for all.

Nobody moves the cells or decides for them: they just apply the rule. The striking thing is that such simple rules produce things that look alive.

A cell's neighbours
This example needs a more recent browser.

Generation 0

    2. Conway's rule (1970)

    The mathematician John Conway invented the most famous rule in 1970, the original «Game of Life». It is just three sentences:

    • A live cell with 2 or 3 live neighbours stays alive.
    • With fewer than 2 it dies of loneliness; with more than 3, it dies from overcrowding.
    • An empty cell with exactly 3 live neighbours fills up: a cell is born.

    Watch it in action. Each important cell shows how many live neighbours it has, so you can check the rule yourself:

    One generation, step by step
    This example needs a more recent browser.

    Generation 0

      A shape that walks
      This example needs a more recent browser.

      Generation 0

        With just those three sentences you get shapes that stay still, that blink, that walk and even shape factories. They are on the patterns page.

        See the patterns

        3. Three species: the 2023 project

        In 2023, for my high-school research project, I invented a version with three species of cells: red, green and blue. Each cell only counts those of its own colour as «its own».

        In the Borrego version, a cell stays alive if it has at least 2 neighbours of its own species and no more than 3 in total, and being born takes 3 neighbours of the same species (the project's «ethnic condition»). In the Mixing version different species can mix: a mixed cell is born, with the blend of their colours.

        Three species (2023)
        This example needs a more recent browser.

        Generation 0

          4. Nests, mothers and daughters

          As we have seen, a new cell can only be born in an empty cell with exactly 3 live neighbours. We call that cell a nest, those 3 neighbours its mothers, and the cell that is born, the daughter.

          In the 2023 versions it is enough for the rule to be met. In the new ones, the daughter inherits things from her mothers (the colour, some genes, a small brain) and, in some, the mothers have to agree for her to be born.

          The nest: where cells are born
          This example needs a more recent browser.

          Generation 0

            5. How something can evolve

            Evolving is changing little by little, generation after generation, without anyone steering it. It takes three things, and all three are in the laboratory:

            • Inheritance: daughters resemble their mothers because they inherit their genes, pieces of data that change how each cell lives (how much it eats, how many neighbours it can stand…).
            • Variation: when inheriting there are small random changes, mutations. That is how new things appear.
            • Selection: not all have the same chances. Living costs food, and there is not enough for everyone: those that cope better live longer and have more daughters, and their genes spread. Nobody picks them: it just happens.
            Inheriting, with small changes
            This example needs a more recent browser.

            Generation 0

              Living costs food
              This example needs a more recent browser.

              Generation 0

                Repeat this for thousands of generations and the population changes: some families vanish, others spread, and the most common genes are no longer the ones at the start. That is what did not work in 2023 and now does.

                6. The six versions at a glance

                They all use the same board and are born in nests of 3 neighbours. Everything else changes:

                VersionTo be born in a nest…To stay alive…What the daughter inherits
                Conway (1970)the 3 neighbours are enough2 or 3 neighboursnothing
                Borrego (2023)all 3 of the same speciesat least 2 of its species and no more than 3 in totalits species
                Mixing (2023)any; if they differ, a mixed cell is bornas in Borregothe colour (the average)
                Evolutionary (2026)food in the nestwhatever its genome says, plus foodits genome, gene by gene, with mutations
                Brains (2026)all 3 mothers want it (their brains decide), plus food2, 3 or 4 neighbours and food; its brain can hold on or give upits brain, mixed and with mutations
                Heredity (2026)the 3 accept each other by their genes and give the daughter a reservefrom 2 up to 3, 4 or 5 neighbours depending on its endurance, plus food from around4 genes (how much it eats, gives, stands and demands), with mutations

                Each version's rules, in detail

                7. What are these brains?

                In the Brains version every cell carries a tiny neural network: a kind of calculator that imitates, very simply, how neurons work. It takes some numbers (how similar the other mothers are, how much food there is, how crowded it is…), combines them and answers yes or no.

                It does not think like us: it is more like an instinct. But since it is inherited and mutates, evolution keeps fine-tuning it, and cells end up «preferring» things nobody taught them.

                How the cells think, with a neuron you can play with

                8. And the Heredity version?

                It is the original idea, from 2021: red, green and blue start with different traits (some eat little, others have many daughters, others stand crowding) and you see where each one evolves. Each cell keeps a food reserve, eats from the empty cells around it and only has daughters with mothers similar enough to itself.

                The board is split into three zones: one with plenty of food, one with little and one where every so often a disaster kills most of them. That way you can see whether evolution takes different paths depending on where you live.

                Try Heredity in the laboratory

                9. How to use the laboratory

                • Press play (the triangle) and watch. The bar under the board rewinds to any generation.
                • In the Rule tab, pick one of the six versions.
                • The brush draws cells; Patterns has famous shapes to place.
                • Colour by changes what the colours show; the board legend explains each view.
                • Data has the figures and charts of what is happening, each with its explanation.
                • The magnifier tool shows a cell's card: its age, its genes, its brain…

                Open the laboratory

                10. Glossary

                Every word used on the site that you have no reason to know already.

                Board
                The grid where everything happens. Each square is a cell.
                Square
                Each square of the board. At any moment it is alive (coloured) or dead (black).
                Cell
                A square of the board. When it is alive, it is the «living being» of this game: it is born, lives a while and dies.
                Neighbour
                The 8 cells around one: left, right, above, below and the 4 corners. A cell only sees its neighbours.
                Generation
                One step of time. Every generation all cells look at their neighbours at once and, according to the rule, are born, stay alive or die.
                Rule
                What decides what happens to each cell in the next generation depending on its neighbours. For example, in Conway: born with 3 neighbours, stays alive with 2 or 3.
                B3/s23
                A short way to write a rule: B says how many neighbours a cell needs to be born and S how many to survive. B3/S23 is Conway's.
                Species
                A group of cells of the same colour that follow the same rules. In the 2023 version there are three: red, green and blue.
                Mixed cell
                A cell born from mothers of different species. Its colour is the mix (the average) of its mothers' colours.
                Ethnic condition
                The 2023 project's birth rule: all 3 neighbours must be of the same species.
                Nest
                An empty cell with exactly 3 live neighbours: the place where a new cell can be born. Those 3 neighbours are its mothers.
                Mother
                The 3 live cells around a nest. The cell born there (the daughter) inherits things from all three.
                Daughter
                The cell born in a nest. It inherits its colour from its 3 mothers and, depending on the version, their genes or their brain.
                Gene
                A piece of data each cell carries, inherited from its mothers, that changes how it lives: for example, how many neighbours it can stand or how much it eats.
                Genome
                The set of genes of a cell: everything it inherited.
                Inherit
                Passing something from the mothers to the daughter. Each of the daughter's genes is copied from one of her three mothers, picked at random.
                Mutation
                A small random change when inheriting: now and then a daughter's gene is not exactly her mother's. That is how new things appear.
                Selection
                Whatever works better leaves more daughters. Nobody picks the best: the ones that live longer and have more daughters spread their genes on their own.
                Evolution
                How a population changes over many generations through inheritance, mutation and selection.
                Population
                All the live cells on the board at a given moment.
                Food
                What a cell needs to stay alive: each square stores food, which is used up by eating and grows back slowly. Without food cells die and none are born.
                Family
                Related cells. Since colour is inherited with small changes, cells of similar colours are relatives: a patch of one colour is a family.
                Lineage
                The chain of mothers, grandmothers, great-grandmothers… of a cell.
                Permission
                In the Evolutionary version, how far a genome relaxes the 2023 rules: surviving with more neighbours or requiring fewer similar ones. Being permissive helps survival but makes cells eat more.
                Brain
                In the Brains version, each cell carries a tiny calculator that imitates neurons: it looks at its surroundings and answers yes or no (for example, whether it wants a daughter).
                Neuron
                The basic piece of an artificial brain: it adds up what reaches it, each thing multiplied by a weight, and gives an answer.
                Weight
                How much each thing matters to a neuron. Positive: it pushes towards yes; negative: towards no; close to 0: it does not care.
                Bias
                A neuron's starting willingness: what it answers when everything else is 0.
                Preference
                What attracts or puts off a brain when deciding. Measured from −1 (puts it off) to +1 (attracts it).
                Hold on
                In Brains, staying alive although the rule says it dies. It costs 8 food, so it only pays off if the cell has it.
                Give up
                In Brains, letting itself die although the rule says it may stay alive.
                Learn
                In Brains, changing its brain a little during its life depending on how its nests went. What it learns is not inherited; how much it learns is.
                Baldwin effect
                When learning helps at first and, over time, evolution makes cells born already knowing, so they stop learning.
                Reserve
                In Heredity, the food a cell keeps stored. It uses it to survive when food is short and gives part of it to its daughters.
                Metabolism
                In Heredity, how much a cell eats each generation. Eating a lot lets it take more, but when food is short it dies sooner.
                Fertility
                In Heredity, what part of its reserve a mother gives each daughter.
                Endurance
                In Heredity, how many neighbours a cell can stay alive with (up to 3, 4 or 5). Standing more crowding costs food.
                Choosiness
                In Heredity, how similar the other mothers' genes must be to its own for a cell to accept having a daughter with them.
                Zone
                In Heredity, each third of the board: one with plenty of food, one with little and one where disasters sometimes happen.
                Disaster
                In Heredity, a disaster that every 250 generations kills 4 out of 5 cells in its zone.
                Wear
                The small chance of dying each generation for no reason: nobody lives for ever.
                Seed
                The number that decides all the randomness of a game. The same seed always gives the same game, so it can be repeated and shared.
                Wrapped
                A board without edges: what leaves on the right comes back on the left, and what leaves at the top comes back at the bottom, like in some video games.
                Pattern
                A group of cells with a shape that behaves in a known way: it stays still, blinks or moves.
                Still life
                A shape that never changes: each cell has just the right neighbours to stay alive and nothing is born around it. For example, the 2 × 2 block.
                Oscillator
                A shape that changes and returns to the same every few generations, like the blinker: three in a row that stands up and lies down.
                Spaceship
                A shape that travels across the board without falling apart. The glider is the smallest: it moves one cell diagonally every 4 generations.
                Gun
                A shape that keeps producing spaceships, like a glider factory.
                Methuselah
                A small shape that takes a huge number of generations to settle down.
                Rle
                A text format to save and share Game of Life shapes.
                Research project
                The high-school research project (2023) all this came from.
                Core
                The parts of the computer's processor that can calculate at the same time. Splitting each generation across several makes everything faster.
                On this page