Skip to content

Instantly share code, notes, and snippets.

View billgathen's full-sized avatar

Bill Gathen billgathen

View GitHub Profile
@billgathen
billgathen / gol.exs
Last active August 29, 2015 14:05 — forked from avdi/gol.exs
Elixir 0.15.1-compatible version of @avdi implementation of Conway's Game of Life
defmodule Life do
def run(board) when is_binary(board) do
board |> parse_board |> run
end
def run(board) do
IO.write("\e[H\e[2J")
Life.print_board board
:timer.sleep 1000
board = next_board(board)