Skip to content

Instantly share code, notes, and snippets.

@sblom
Created March 17, 2011 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sblom/874827 to your computer and use it in GitHub Desktop.
Save sblom/874827 to your computer and use it in GitHub Desktop.
A straight J port of Dyalog's APL implementation of Conways's game of life (http://www.youtube.com/watch?v=a9xAKttWgP4)
life =: 3 : '+./ (1 ,: y) *. 3 4="0 _ +/ +/ 1 0 _1 |."1/"(0 _) 1 0 _1 |./"0 _ y'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment