Help, WarDoq!
Sixteen spellings of hello world at one character each, with an adder and a prime test on the side.
Dennis, 2015 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 8 known programs · Test method
Run it
The idea
Dennis, a user of Programming Puzzles & Code Golf, made Help, WarDoq! in 2015. The specification says the language Hello and its relatives have plenty of shortcomings that make them unusable in code golf. Help, WarDoq! answers with a one-character command for each of sixteen spellings of the greeting, with or without the capitals, the comma and the exclamation mark. It adds commands for a sum, a xor, two prime tests and the program's own source, forwards or backwards.
Read the story
It has no loops and no memory, and it is not Turing complete.
The machine
| Char | Gives |
|---|---|
H h | Hello, World! and Hello, World |
E e | Hello, world! and Hello, world |
L l | Hello World! and Hello World |
O o | Hello world! and Hello world |
W w | hello, World! and hello, World |
R r | hello, world! and hello, world |
D d | hello World! and hello World |
, ! | hello world! and hello world |
A | The sum of two numbers from the input |
a | Their bitwise xor |
P | 1 if the number read is a positive prime, else 0 |
p | 1 if it is a prime or minus a prime, else 0 |
Q q | The program, forwards or backwards |
Each answer goes on its own line. A space begins a comment that the next command ends, so a space does nothing, and neither does any other character. The reference is one line of CJam that turns every character of the program into its answer with a single transliteration.
Example
Patterns it teaches
Further
See also
Also in Jokes
Write your own in Run Convert a program from Help, WarDoq!
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: help-wardoq.
Command line
shib run help-wardoq -e 'H'shib manual help-wardoqSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/help-wardoq.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org