Project:
Game of Life
A project started when I was an undergrad at York Univerisity. This project simulates "Conway's Game of Life" with small edits and additions made.

This project is an adaptation of "Conway's Game of Life" (GoL) that aims to simulate life on a petri dish. By generating a grid of integers ranging from -1 to 2. Each integer represents a state on the grid. -1 represents a dead cell, while the integers 0 to 2 represent a colour Red, Green, or Blue (RGB). Each colour represents a different bacteria culture. By checking adjacent cells the program determines what state each cell will be in. Cells surrounded by a majority of one colour will be converted to that colour. While the GoL originally had a condition of "dying by overpopulation" where a cell would die if they were surrounded by multiple cells of the same value/integer this has been edited out in what I have created.
In addition, a mouse event was added. This event takes the on click x and y coordinates to get the cell at the on click position. The user can then drag the mouse to "disturb" the cell cultures.
Code for this project can be found on the Project_Game-Of-Life page of my Github.