Halloween Golf: The 2spooky4me Challenge!
gs2, 15 bytes
I outgolfed Dennis!
CP437:
spooky•me♣╨V↕0B
Hex dump:
73 70 6f 6f 6b 79 07 6d 65 05 d0 56 12 30 42
At the start of the program, STDIN is pushed (e.g. the string "3"
) and stored in variable A
. The first ten bytes of the program push two strings, "spooky"
and "me"
, to the stack. Then:
d0
pushes variableA
.56
parses it as a number.12
30
increments it by two.42
swaps the top two elements on the stack, leaving"3" "spooky" 5 "me"
.
The final stack is printed as 3spooky5me
.
GS2, 17 bytes
56 40 27 27 04 73 70 6F 6F 6B 79 05 42 04 6D 65 05
I CAN'T OUTGOLF DENNIS HELP
Stuck, 17 bytes
i_2+"spooky";"me"
EDIT: GUESS YOU COULD SAY I'M STUCK AT 17 BYTES