OpenGL Shading Language implementation of Conway's Game of Life as demonstartion of general purpose GPU programming, enabling massively paralel computation of the steps of the simulation on any compatible graphic card.
The Game of Life, also known simply as "Life", is a cellular automaton devised by the British mathematician John Horton Conway in 1970.
The game is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves, or, for advanced players, by creating patterns with particular properties.
The simulation of the evolution of the cells is executec on full spped by default. On my configuration this means the execution of the simulation for more than 700 steps per second:
On order to make the evolution of the cell configuration more visible and followable, the player may zoom in and slow down the speed on the simulation:
The player may create cells be clicking on the screen, where the new cell should be created:
White cells were just born in the current cycle. Red ones are living. Blue are dead due to overcrowding, Green are dead by under-population