I want to simulate the game of life problem using python. I want to draw a grid and be able to color its cells as the simulation progresses. How do I do that in Python?
You can use pygame to do that.
To display the state of your simulation, you should create an 8 bit surface with a palette, and access it with the pygame.surfarray module.
Take a look at PyGame too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With