No console, no log, no ()
Description
You must print Hello, World! to stdout. I have systematically made it impossible, so good luck.
c: you can no longer access console since the letter c is forbidden
.: even if you get console, there’s no way to access the log method
(: in the slight chance that you get to console.log, you for sure won’t be able to call it.
Finally, you can only use printable characters ([ -~\n] in regex).
Same logic is sound in python, except there isn’t even a console, so it’s twice as impossible. Don’t bother.
Judge
(async function*(context: Context): Challenge { yield (await context.run(undefined)).assertEquals('Hello, World!'); yield context.registerTestCase(new TestCase("printable", /[^\n -~]/.test(context.code) ? "Fail":"Pass", {"Text": `You have unprintable characters!`})); yield context.registerTestCase(new TestCase("No c", context.code.includes('c') ? "Fail":"Pass", {"Text": `You have a c`})); yield context.registerTestCase(new TestCase("No .", context.code.includes('.') ? "Fail":"Pass", {"Text": `You have a dot`})); yield context.registerTestCase(new TestCase("No ()", context.code.includes('(') ? "Fail":"Pass", {"Text": `You have a paren`})); return context.noFailures(); })
Example Code
F=globalThis[`\x46\x75\x6e\x63\x74\x69\x6f\x6e`] A=F`\x63\x6f\x6e\x73\x6fl\x65\x2el\x6f\x67\x28\x22\x48\x65ll\x6f,\x20\x57\x6f\x72l\x64\x21\x22\x29` A``