Game of Life in Processing - Python mode

36 views
Skip to first unread message

Peter Farrell

unread,
Jan 16, 2017, 7:05:07 PM1/16/17
to Processing Educators
Hi, Group,

I've been working on a Game of Life program in Processing (Python mode) for a while (notice it's still named "#3") and finally gave up and slavishly copied Shiffman's Java version line by line over to Python. It works. 

I could write a step by step tutorial. Cellular Automata are an exciting avenue for exploration into patterns using programming. I highly recommend Wolfram's A New Kind of Science. Had a much easier time with Wolfram's 2D Automata and extended them to 3D using Minecraft. The Pyramid looks like a 3D version of Sierpinski's Triangle.

Let me know what you think!

Peter Farrell
California
Game_of_Life_3.pyde

Mark Sawula

unread,
Jan 16, 2017, 7:27:08 PM1/16/17
to processing...@googlegroups.com
What a coincidence!  I'm taking my intro class through "Life" now, but with Turtles in a Jupyter notebook.  I'm doing it first really inefficiently with a dictionary of cell objects.  Then thinking of showing them how to do it more efficiently if they're not sick of it by then.  Mine needed more practice w objects at this point
--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educa...@googlegroups.com.
To post to this group, send email to processing...@googlegroups.com.
Visit this group at https://groups.google.com/group/processing-educators.
For more options, visit https://groups.google.com/d/optout.
<Game_of_Life_3.pyde>

Peter Farrell

unread,
Jan 16, 2017, 8:45:25 PM1/16/17
to Processing Educators
Hi, Mark,

That's always a hard choice: you want them to get some taste of doing it the hard way, and then the new tool you teach them will come as a relief. But if you linger too long in Drudgeryville you might lose 'em.

I read the "Programmer's Motto" somewhere: "We do these things not because they are easy, but because we thought they were going to be easy."

Peter


On Monday, January 16, 2017 at 4:27:08 PM UTC-8, Mark Sawula wrote:
What a coincidence!  I'm taking my intro class through "Life" now, but with Turtles in a Jupyter notebook.  I'm doing it first really inefficiently with a dictionary of cell objects.  Then thinking of showing them how to do it more efficiently if they're not sick of it by then.  Mine needed more practice w objects at this point

On Jan 16, 2017, at 7:05 PM, Peter Farrell <peterfa...@gmail.com> wrote:

Hi, Group,

I've been working on a Game of Life program in Processing (Python mode) for a while (notice it's still named "#3") and finally gave up and slavishly copied Shiffman's Java version line by line over to Python. It works. 

I could write a step by step tutorial. Cellular Automata are an exciting avenue for exploration into patterns using programming. I highly recommend Wolfram's A New Kind of Science. Had a much easier time with Wolfram's 2D Automata and extended them to 3D using Minecraft. The Pyramid looks like a 3D version of Sierpinski's Triangle.

Let me know what you think!

Peter Farrell
California

--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educators+unsub...@googlegroups.com.

To post to this group, send email to processing...@googlegroups.com.
Visit this group at https://groups.google.com/group/processing-educators.
For more options, visit https://groups.google.com/d/optout.
<Game_of_Life_3.pyde>
Reply all
Reply to author
Forward
0 new messages