Skip to main content
Fix empty input handling
Source Link
SuperJedi224
  • 12k
  • 1
  • 45
  • 68

Thue, 103 84 bytes

@::=:::
S::=N
E::=N
W::=N
aN,::=b
aNN,::=a
bN,::=a
a.,::=~1
b.,::=~1
bNN::=~0
::=
a@,.,

Takes comma-separated input

Thue, 103 84 bytes

@::=:::
S::=N
E::=N
W::=N
aN,::=b
aNN,::=a
bN,::=a
a.::=~1
b.::=~1
bNN::=~0
::=
a@,.

Takes comma-separated input

Thue, 84 bytes

@::=:::
S::=N
E::=N
W::=N
aN,::=b
aNN,::=a
bN,::=a
a,::=~1
b,::=~1
bNN::=~0
::=
a@,,

Takes comma-separated input

added 3 characters in body
Source Link
SuperJedi224
  • 12k
  • 1
  • 45
  • 68

Thue, 100103 84 bytes

@::=:::
N::=X
S::=X=N
E::=X=N
W::=X=N
aXaN,::=b
aXXaNN,::=a
bXbN,::=a
aX.::=~1
bXa.::=~1
ab.::=~1
bXX,bNN::=~0
::=
a@,.

Takes comma-separated input

Thue, 100 bytes

@::=:::
N::=X
S::=X
E::=X
W::=X
aX,::=b
aXX,::=a
bX,::=a
aX.::=~1
bX.::=~1
a.::=~1
bXX,::=~0
::=
a@.

Thue, 103 84 bytes

@::=:::
S::=N
E::=N
W::=N
aN,::=b
aNN,::=a
bN,::=a
a.::=~1
b.::=~1
bNN::=~0
::=
a@,.

Takes comma-separated input

Source Link
SuperJedi224
  • 12k
  • 1
  • 45
  • 68

Thue, 100 bytes

@::=:::
N::=X
S::=X
E::=X
W::=X
aX,::=b
aXX,::=a
bX,::=a
aX.::=~1
bX.::=~1
a.::=~1
bXX,::=~0
::=
a@.