Skip to main content
3 of 3
Fix empty input handling
SuperJedi224
  • 12k
  • 1
  • 45
  • 68

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

SuperJedi224
  • 12k
  • 1
  • 45
  • 68