top of page

Conway's Game of Life

The Game of Life is a cellular automaton, where the evolution is determined by the initial state. One interacts with the Game of Life by creating an initial configuration and observing how it evolves.

Software Used:

Language Used:

Primary Role(s):

Group Size:

Development Time:

Microsoft Visual Studio

C++

All

1

1 week

Code Snippet

Here shows a sample of how I use Pointer as a dynamic array that constantly updates the map, and deleting the pointer for preventing memory leak as well. Gol is a class where it represents the application of GOL, all the functions inside will be taking care of updating the cells and destroy the cells which will be mentioned in gameRun.

updateMap.png

Then the game of life running functions.

gameRun.png

And the initialize and deinitialize.

init.png

Copyright © 2022 by Yee Zhan Quan.

bottom of page