#Octave, 30 bytes
Octave, 30 bytes
Used the same order of arguments as Jonathan Allan.
Takes the input as two-character string 'W\'.
@(x)['NESSWNW'](mod(sum(x),8))
Try it online.
#Octave, 30 bytes
Used the same order of arguments as Jonathan Allan.
Takes the input as two-character string 'W\'.
@(x)['NESSWNW'](mod(sum(x),8))
Try it online.
Octave, 30 bytes
Used the same order of arguments as Jonathan Allan.
Takes the input as two-character string 'W\'.
@(x)['NESSWNW'](mod(sum(x),8))
Try it online.
#Octave, 30 bytes
Used the same order of arguments as Jonathan Allan.
Takes the input as two-character string 'W\'.
@(x)['NESSWNW'](mod(sum(x),8))
Try it online .
#Octave, 30 bytes
Used the same order of arguments as Jonathan Allan.
Takes the input as two-character string 'W\'.
@(x)['NESSWNW'](mod(sum(x),8))
#Octave, 30 bytes
Used the same order of arguments as Jonathan Allan.
Takes the input as two-character string 'W\'.
@(x)['NESSWNW'](mod(sum(x),8))
Try it online .
#Octave, 30 bytes
Used the same order of arguments as Jonathan Allan.
Takes the input as two-character string 'W\'.
@(x)['NESSWNW'](mod(sum(x),8))