Revision history of "Rule:WWBrainLife"

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 14:36, 1 May 2023Breaker's glider gun talk contribs 9,520 bytes +9,520 Created page with "@RULE WWBrainLife name = "WWBrainLife" n_states = 7 n_neighbors = 8 def transition_function(a): nw, ne, sw, se, n, w, e, s, c = a #unpack neigh = n, ne, e, se, s, sw, w, nw #repack background, wire_head, wire_tail, wire, life, brain_head, brain_tail = range(n_states) counts = {s: neigh.count(s) for s in range(n_states)} if c==background: if counts[brain_head]==2 or (counts[wire_head]==2 and counts[wire]==0): return brain_head elif cou..."