Python.Rhino.GH Bidimensional Array with Full print 1 empty print 0

Hi @valentin.cocq,

If you want to learn Python, I highly recommend the free Codecademy interactive course. It should cover the basics pretty well and you can comb through it in a couple of days, if you’re motivated.

The Game of Life has been implemented by a lot of people already in all sorts of ways:

If you understand how the Game of Life works, you’ll also understand how to feed it a predefined initial state of alive and dead cells (i.e. 0 and 1).

You could use @laurent_delrieu’s approach to randomly define the initial state of the Game of Life (the starting game board).
Here’s a rough, quick Python translation of what Laurent did in C#.

square_generation_python.gh (8.8 KB)

2 Likes