Conway's Game of Life - UZZT

Discuss how totally awesome Bang! is here.

Moderator: Terryn

Post Reply
User avatar
Truncheon
MMMM baby
Posts: 32
Joined: Thu May 07, 2009 11:45 am

Conway's Game of Life - UZZT

Post by Truncheon »

Conway's Game of Life:

http://www.youtube.com/watch?v=hBp3j_Uah8w

Code: Select all

:main
#set y
#set x
:loop
#set a
#set north y -- north
#set ney y -- ney
#set nex x ++ nex
#set nwy y -- nwy
#set nwx x -- nwx
#set south y ++ south
#set sey y ++ sey
#set sex x ++ sex
#set swy y ++ swy
#set swx x -- swx
#set east x ++ east
#set west x -- west

#ifa y x solid
#ifa ney nex solid ++ a
#ifa nwy nwx solid ++ a
#ifa sey sex solid ++ a
#ifa swy swx solid ++ a
#ifa north x solid ++ a
#ifa south x solid ++ a 
#ifa y west solid ++ a
#ifa y east solid ++ a
#if a gt 1
#if a lt 4 #put alt y x solid
#endif

#ifa not y x solid
#ifa ney nex solid ++ a
#ifa nwy nwx solid ++ a
#ifa sey sex solid ++ a
#ifa swy swx solid ++ a
#ifa north x solid ++ a
#ifa south x solid ++ a 
#ifa y west solid ++ a
#ifa y east solid ++ a
#if a eq 3 #put alt y x solid
#endif

#++ x
#if x eq 60
#set x 0 ++ y
#endif

#if y eq 25 pend
#loop
:pend
#altswap
#idle main
User avatar
Zenith Nadir
this is my hammer
Posts: 2767
Joined: Wed Mar 12, 2003 11:40 am
Location: between the black and white spiders

Post by Zenith Nadir »

when i was like 7 years old i went on holiday with my parents to wales and we visited conwy castle because i was obsessed with medieval lego at the time, and every time somebody mentions conway's game of life i think of conwy castle + also most other castles in north wales

:rocket:
he looked upon the world and saw it was still depraved :fvkk:

Overall: Rotton egg for breakfast
Post Reply