Skip to content

Commit 5cbeffa

Browse files
Update Tet2.ruel
1 parent d57d9f9 commit 5cbeffa

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

Tet2.ruel

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@NUTSHELL Tet2
22

33
Tet2 is the successor to Tetrazine, where the DECA blocker heads change behavior slightly.
4-
They "write" their values to NTAA data passing below, instead of toggling when NTAA heads pass.
4+
They don't toggle when NTAA heads pass, and NTAA data will be cleared to 0 with the DECA1 cells
5+
to match the behavior of the Wireworld wires.
56

67
States:
78

@@ -23,19 +24,19 @@ States:
2324
@TABLE
2425
neighborhood: Moore
2526
anyNTAAHead = (NTAAHead0, NTAAHead1)
26-
anyWWHead = (StrongHead, WeakHead)
27+
anyhead = (StrongHead, WeakHead, anyNTAAHead)
2728
WWTail = (WeakTail, StrongTail)
28-
anyWW = (anyWWHead, WeakWire, StrongWire)
29+
anyWW = (anyhead, WeakWire, StrongWire)
2930
anyNTAA = (anyNTAAHead, NTAATail, NTAAWire)
3031

3132
# --------------DECA---------------
3233

3334
symmetries: rotate4reflect
3435
# blocked by adjacent DECA head1
35-
(WeakWire, StrongWire), N Background, E (WeakWire, StrongWire), S DECA1, W (anyWWHead, anyNTAAHead); [0]
36+
(WeakWire, StrongWire), N Background, E (WeakWire, StrongWire), S DECA1, W anyhead; [0]
3637

37-
# toggle when lone WW (stronghead/strongtail/weakhead) next to
38-
(DECA0, DECA1), NW --anyWW, N (anyWWHead, StrongTail), NE --anyWW; [0: (DECA1, DECA0)]
38+
# toggle when lone head next to
39+
(DECA0, DECA1), NW --anyWW, N (anyhead - NTAAHead, NTAATail, StrongTail), NE --anyWW; [0: (DECA1, DECA0)]
3940

4041
# --------------NTAA--------------
4142
# 0: blank
@@ -71,14 +72,10 @@ NTAAWire, NTAAHead1 ~ 2, any ~ 4, any ~ 2; NTAAHead0
7172
# w, h, h0, --h1 ~ 2; [1]
7273
NTAAWire, anyNTAAHead, any ~ 2, NTAAHead0, any ~ 2, --NTAAHead1 ~ 2; [1]
7374

74-
# DECA interjection: DECA0/1 adjacent writes type
75-
symmeries: rotate4reflect
76-
NTAAWire, N DECA0, E anyNTAAHead, W NTAAWire, S Background; NTAAHead1
77-
NTAAWire, N DECA1, E anyNTAAHead, W NTAAWire, S Background; NTAAHead0
78-
79-
symmetries: nutshell.AlternatingPermute
8075
# Signals
8176
# w, h, --h ~ 3; [1]
77+
# DECA
78+
NTAAWire, anyNTAAHead, any ~ 2, --anyNTAAHead ~ 2, any ~ 2, DECA1; NTAAHead0
8279
NTAAWire, anyNTAAHead, any ~ 2, --anyNTAAHead ~ 3, any ~ 2; [1]
8380
# h, --w ~ 4; t
8481
anyNTAAHead, --NTAAWire ~ 4, any ~ 4; NTAATail
@@ -103,21 +100,21 @@ WeakWire, <1 / (StrongHead, NTAAHead1) / any - (StrongHead, NTAAHead1)>; WeakHea
103100

104101
# activate when Wireworld++heads
105102
symmetries: permute
106-
NTAAWire, anyWWHead ~ 2, any; NTAAHead1
107-
NTAAWire, anyWWhead ~ 1, any; NTAAHead0
103+
NTAAWire, (anyhead - anyNTAA) ~ 2, any; NTAAHead1
104+
NTAAWire, (anyhead - anyNTAA) ~ 1, any; NTAAHead0
108105

109106
@COLORS
110107

111108
000: Background
112109
0F0: StrongHead
113110
080: StrongTail
114-
050: StrongWire
111+
040: StrongWire
115112
FF0: WeakHead
116113
880: WeakTail
117-
005: WeakWire
114+
004: WeakWire
118115
0FF: NTAAHead1
119116
088: NTAAHead0
120117
800: NTAATail
121-
500: NTAAWire
122-
555: DECA0
118+
400: NTAAWire
119+
444: DECA0
123120
FFF: DECA1

0 commit comments

Comments
 (0)