Conway's Game of Life has amazed Computer Scientists and Mathematicians for over half a century now. For those who don't know, the Game of Life is a zero-player game that follows four simple rules and can end in chaotic, beautiful, and mind-blowing outcomes. This simple game can even be used to simulate a Turing machine (you can essentially program using the game).
You can get a feel for the game here: https://playgameoflife.com/
Conway's Game of Life starts with a 2d grid, and each cell in the grid being either alive or dead. The grid will then evolve after each iteration based on the following rules:
- Any living cell with less than 2 live neighbors dies
- Any living cell with 2 or 3 live neighbors continues to be alive
- Any dead cell with three live neighbors becomes a live cell
- Any live cell with more than 3 live neighbors dies
Following these rules, each cell counts the number of live cells adjacent to it and determines its upcoming status.
Codesphere is a no-config cloud provider that will allow us to deploy our app seamlessly. We're going to use it to host our Game of Life simulator. You can learn more here:
These are just the tip of the iceberg! By adjusting the grid length and survival rules there is literally an infinite number of patterns you can generate.
Hope you enjoyed it!
Happy coding from your good friends at Codesphere, the next-generation cloud provider.