Exploring Biogames

Sometimes scientific investigation yields something more than meaningful insights into the world. Mathematical models in biology can be fascinating and aesthetically pleasing, and some computer games, apart from being very addictive, can educate people and advance research.  Mathematical models and games are deeply interconnected, because in biology we often want to model using computers different types of “games” happening in nature – the competition for various resources (food, mating partners, etc.) being the obvious example.

In this article, we will examine a few notable biological games. The first two examples are not really games as we usually think of them – you don’t play, but rather watch what happens as the game plays itself! This is exactly how we think of life, where organisms live, evolve, and die without outside intervention. Games can help us see how complex patterns and behaviors emerge from a set of seemingly simple rules.

The Game of Life


This game was created in 1970 by John Conway, a mathematician from Cambridge who performed research on so-called “cellular automations.” Conway’s Game of Life attempts to model a society of living organisms capable of living and replicating in response to their neighbors.

The playing field is an infinite square grid, and every square is assigned to one of two states: alive or dead. The researcher (player) sets the initial state, and the grid is updated iteratively according to four rules:

  1. Any live cell with fewer than two live neighbors dies, as if by underpopulation.

  2. Any live cell with two or three live neighbors lives on to the next generation.

  3. Any live cell with more than three live neighbors dies, as if by overpopulation.

  4. Any dead cell with exactly three live neighbors becomes a live cell, representing reproduction.


The range of patterns that arise from these simple rules is unexpectedly wide - neither completely random, nor repetitive. Some mathematicians deliberately developed structures with interesting properties, creating replicators, replicators capable of mutating, moving ‘spaceships’ that leave ‘children’ behind, and many more. For example, here is the first replicator created in the game:

You can even build a computer in the Game of Life capable of performing logical and numerical computations. In fact, The Game of Life is theoretically as powerful as any other physical or theoretical computer (it is proven to be a universal Turing machine).


We can see all the main features of real biological life appearing here: replication with mutations, chaoticity and unpredictability. Small changes in the initial pattern can completely change the whole process, and it is impossible to predict whether a given pattern will occur from a given initial state. Self-organization is also present, as structures with apparent purpose (to move or to spawn ‘children’) emerge from seemingly random initial states.


Compared to Conway’s game of life, the purpose of Boids was more narrow; the game was was developed to model flocking, swarming, and herding behavior common in groups of animals such as a flock of geese. A ‘boid’ is a small hypothetical organism that tries to do everything possible to stay with the other boids nearby. It moves approximately in the same direction as the other boids around, and it tends to get closer to the others, while also avoiding collisions. There is no one leading the boids and no predefined directions; everything just happens ‘by itself’. Here is one of the first original simulations by its creator, Craig Reynolds, from 1986:

giphy (1).gif

We can extend the model, for example by placing obstacles on the field or by introducing ‘predators’ that boids try to avoid. But even in the simplest models we, again, notice the emergence of complex behaviors, such as flocks splitting and reuniting after avoiding predators and obstacles or spontaneous changes in direction.

The Boids model is so realistic and beautiful, it has even been used in computer games (Half-Life) and animation! One of my favorite online implementations is shown below, but you can also fiddle with the parameters in the version by Harmen de Weerd, which include number of agents, movement speed, predators, alignment with flockmates, predator avoidance, and proximity to center.

Although The Game of Life and Boids are different in almost everything, the core idea is the same: when making a model, we don’t need a complex set of rules for complex patterns and behaviors to emerge. This idea can be readily applied to biological life. The process of evolution is complicated, almost chaotic and random at times, but that does not mean that the rules of evolution are also complex.

There are only a few conditions that a group of organisms (or, more generally, ‘replicators’) needs to satisfy to evolve. First, the organisms have to reproduce with changes, which means they need to have variability in some of the traits. Second, natural selection should act on this group by means of selective pressure. That is, the organisms should replicate with different rates depending on the traits they have. This could be competition for resources, or differential survival because of the environmental stress, or something else. So it seems like our whole biosphere emerged by obeying just these two fairly simple rules.

There are also interactive biogames where players take an active part in the process and can compete with other players, and they serve a different purpose, aiding scientists who may lack computational and human resources. We will explore two such games.


FoldIt is all about protein structures. It is a puzzle game where you have to move, twist, rotate and tweak proteins to find the most stable form.

After a introductory tutorial, you are given a model of a some protein, typically one that interests researchers. We know the amino acid sequence, but the 3D crystal structure – the arrangements of all of the atoms in space – is unknown. The challenge is to search for a structure with the least energy, with all hydrogen bonds and hydrophobic interactions in place. The lower the energy of the protein, the higher the score you get. After the challenge finishes, scientists take the structure with the highest score and try to verify if it exists in the real world.

Why is determining protein structure so important? Information about protein structure helps develop drugs, fight diseases, and give insight into the inner workings of a cell. However, we can also try to alter the structure of proteins to get novel functions that are not present in nature – an area known as protein engineering. FoldIt uses protein engineering through its design puzzles, (for example, this one), where you need to come up with a protein with given characteristics, such as symmetry, shape, etc. While engineering proteins by playing games on the computer seems fascinating, scientists also want proof that the molecules the players came up with actually work. To do this, the lab that created the game (the Baker Lab at the University of Washington) produces these artificial proteins and uses ‘wet’ methods to characterize the structure and activity in vitro. Here is one of the player-designed proteins chosen to be synthesized in the wet lab:



The next game, EteRNA, developed in part at the Das Lab at Stanford, tries to achieve similar goals but for a much more interesting class of molecules: RNAs. RNAs play an equally important role in the cell, but we know much less about RNA folding and structure than about proteins. Similar in chemical structure to DNA, RNA has many more functions and forms, with its loops, hairpins, and knots. RNAs can even serve as enzymes. Understanding more about RNA folding and structures to later unravel RNA function is of great interest to researchers.

EteRNA tries to make progress in this area by developing the method of obtaining RNAs that fold into any desired shape. The gameplay is almost opposite of FoldIt. You are given a desired shape (a secondary structure), and you need to find the sequence of nucleotides that makes this shape the most likely based on favorable chemical interactions.


After you get comfortable with the mechanics of the game, you get access to the CloudLab, where you can participate in research. Here, the structures you suggest may be then synthesized and tested in the Das Lab. The recent projects include the development of a tuberculosis diagnosis device which recognizes the RNAs of the tuberculosis pathogen and the invention of special guide RNAs for CRISPR that can turn off the process of gene editing when a small molecule is introduced.

There are of course many more games, puzzles and models out there, but they are all united by the idea that there is a place for beauty and entertainment in science.