Game of Life on a Raspberry Pi (and a LED board)… in Haskell


This is a quick post about, re-purposing my Raspberry Pi + Peggy2 art installation, which already re-purposes a 8-9 years old Peggy2 LED board, to play Conway’s Game of Life.

There’s not much to say about it, except that continuing my foray into pure functional programming, I’ve done this in Haskell, which was a huge pain in the culus and it took probably an order of magnitude more time that it would have in Python… Of course, not Haskell’s fault… πŸ™‚Β  And truth be told this time I was really impressed by how easy it was to use the I2C port to communicate with the Atmega controlling the LEDs, thanks to the HPi library.

You can of course check the code out on my Github account and enjoy my probably awful Haskell code style…

Advertisements

4 Responses to Game of Life on a Raspberry Pi (and a LED board)… in Haskell

  1. Pingback: Conway's Game of Life on a Raspberry Pi in Haskell - Coding Videos

  2. Pingback: Game of Life on a Raspberry Pi (and a LED board) in Haskell – gStore

  3. Pingback: Game of Life on a Raspberry Pi (and a LED board)… in Haskell @Raspberry_Pi #PiDay #RaspberryPi - HudsonWerks

  4. Pingback: Game of Life on a Raspberry Pi (and a LED board)… in Haskell @Raspberry_Pi #PiDay #RaspberryPi « Adafruit Industries – Makers, hackers, artists, designers and engineers!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: