Conway’s Game of Life

As someone who hasn’t had a lot of experience with coding, i had always been a bit cautious when undertaking big projects, this was one of them. I didn’t know whether i was capable enough to learn and implement my knowledge on it.

Conway’s Game of Life was one such project. It was a 2D colony simulation that had certain rules in it. I implemented this ‘game’ using python. Where i used the pygame library to display and update the state of the grid per generation. This is how it would look when simulating.

A small, stable configuration of the game

One of the issue i ran into when creating this project was of scale. The first iteration of this program had very inefficient algorithms, and would have performance issues when displaying larger grids.

The larger configuration, barely hits 15 fps on the first iteration

This eventually led to me rethinking about how i displayed the grid, teaching me about the importance of optimization in programming.