User:Tommyaweosme/Life logic gates

From LifeWiki
Jump to navigation Jump to search

a1 first bit of neighbors

a2 second bit of neighbors

a3 third bit of neighbors

a4 fouth bit of neighbors

b is current state

or(and(and(not(a3,a4),a2),b),and(and(and(a1,a2),not(and(a3,a4))),not(b)))