Skip to content

Instantly share code, notes, and snippets.

@adnils
Forked from justecorruptio/conway_life.c
Created April 5, 2014 16:11
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 adnils/9993858 to your computer and use it in GitHub Desktop.
Save adnils/9993858 to your computer and use it in GitHub Desktop.
#define _+o[$&1][O
o[2][1024],$;main(
O){for(;getchar(),
puts("\e[2J");$++)
for(O=32;O++<992;)
O&31&&printf(~O&31
?(o[~$&1][O]=$?(_-
33]_-32]_-31]_-1]_
+1]_+31]_+32]_+33]
|_])==3:rand()&1)?
"[]":" ":"\n");}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment