User:Tommyaweosme/OCA logic gates

From LifeWiki
Jump to navigation Jump to search

a1 - bit one of neighbors

a2 - bit two of neighbors

a3 - bit three of neighbors

a4 - bit four of neighbors

b - current state

3-4 life

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

b3/s3

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

life without death

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