Maintain A Dog Through Coding
Jump to navigation
Jump to search
Maintain A Dog Through Coding (or madtc) is an esoteric programming language made by Fly.
You're a dog owner and your goal is making your dog do things with cookies. If you run out of cookies, your dog will just stop listening to you, so make sure to give your dog the proper amount of cookies. You have a particularly smart dog, it's your job to train him.
Command | Explanation |
---|---|
woof | the cookie counter gets incremented by one |
bark | a number is putted on the the stack, then it gets inverted |
argh | it reverses the stack |
rrrr | it outputs the top value of the stack as it's ASCII equivalent |
ruff | it outputs the top value of the stack as a number |
barf | it take a number as an input, then it gets putted on the stack |
howl | the top value duplicates |
yawn | pops the top value of the stack |
umph | it ends the program and checks if the stack is empty, if it's not, it'll run an error |
"Hello World" program
woof woof woof woof woof woof woof woof woof woof bark 27 bark 101 bark 801 bark 111 bark 23 bark 78 bark 111 bark 411 bark 801 bark 001 woof argh woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof woof rrrr yawn rrrr yawn howl rrrr rrrr yawn yawn rrrr yawn rrrr yawn rrrr yawn rrrr yawn rrrr yawn rrrr yawn rrrr yawn umph
Implementations
If you want to try the language you can find it on github