Study Notes: Conway’s Game of Life in Elixir

This is a first take on Game of Life. It only exploits the most basic Elixir features like functions, lambdas, and pattern matching.

[gist id=5963465]

4 comments

  1. Cool, good idea. I’ve learnt quite a lot from that so thank you. There’s a tiny syntax error in there on line 45 there should be a comma before the do

    def next_state(“.”, _), do: “.”

Leave a Reply to Avdi Grimm Cancel reply

Your email address will not be published. Required fields are marked *