Cellular Automa in Pygame
- 10 Devlogs
- 13 Total hours
A life like cellular automa simulator made using pygame.
A life like cellular automa simulator made using pygame.
I added a clear button so you can clear the board and try out you own creations.
Cellular Automata is a discrete grid based system which consists of cells that update themselves following a certain ruleset over discrete time chunks called generations. Conway’s game of life is the most famous one of these, but is only 1 subset of a larger set of life-like cellular automata.
In Conways game of life, each cell can either be one of 2 states, dead or alive. Its’s updating ruleset is:
This ruleset can be written in the form of B3/S23 and is just one of many other rules that can exist in life-like Cellular Automata.
In this update, I have added boxes that you can turn on or off to customise the cellular automa to any rule you want.
My next goals are to:
Mainly, I just added checkboxes. The vision is to have these boxes control at what numbers nodes spawn and die.
Added a Mouse scroll to make the zoom mechanic more intuitave - and its much less laggy than a slider. Programming a scroll wheel was both easier and harder than I expected, but I have now added a new tool to my pygame toolkit.
I Implemented the slider mechanic I was working on before in order to make it so that you can scale the simulation, as can be seen in this video.
I removed my old colour stuff and implemented conways game of line my changing the update code. I also made it screen size.
Created a slider
Added the majority algorithm to my Cellular Automata
I created a simple stochastic cellular automata that changes colours randomly based on neighbouring tiles
Created a draggable grid