Skip to content

Instantly share code, notes, and snippets.

@sobels
sobels / life.d
Created October 20, 2014 20:41
Conway's Game of Life, using D metaprogramming
enum height = 5;
enum width = 5;
enum iterations = 20;
enum initialState = [
0, 1, 0, 1, 1,
0, 0, 0, 0, 1,
1, 1, 0, 0, 0,
1, 1, 1, 1, 1,