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

Published by Avdi Grimm


  1. Very cool! I chose the same problem for my first Elixir program, but I don’t have any visual component. My input is a list of live cells. If you’re interested it’s here:

    I had a function just like your neighbor_coords that I refactored into a list comprehension

  2. 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: “.”

  3. join the life of ruby buzzwords

    ruby webrtc


Leave a Reply

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