r/adventofcode • u/bla2 • Dec 12 '19
Upping the Ante FizzBuzz in intcode
It takes no input and assumes your output function prints a single character. In C, putchar(op); would work, or in Python sys.stdout.write(chr(op1)).
Find it here.
6
Upvotes
View all comments
Show parent comment
1
u/bla2 Dec 13 '19
Nice!
Since only really good programmers can write fizzbuzz, I made a C-to-intcode compiler, got an existing fizzbuzz implementation off the web, and compiled it to intcode with my compiler. That's probably why mine is a tad longer :)