7
\$\begingroup\$

There are radiation hardened quines, palindromic quines, but has anyone tried both?! I think not!

Rules

So the challenge here is to make a quine that if any symbol is deleted it prints its original source code, and the quine needs to be the same read forward and backwards(before radiation damage)! All code will be scored based on bytes required to write it.

Things to avoid

  1. Do not use any programs that are capable of directly examining their code and outputting it (that even means programs that take their source and dump it into some sort of data)
  2. Do not use anything that somehow cheats all of this (like a function that outputs itself and some other character... please)

DO YOUR BEST!!!

\$\endgroup\$
4
  • \$\begingroup\$ Welcome to the site! I would recommend changing "things to avoid" to "these are not allowed". Generally, "requirements" work better on this site than "recommendations", since you can usually save bytes by ignoring recommendations. Also, point 3 doesn't make a whole lot of sense. If every program must be palindromic and hardy, then you're only scoring based off length. \$\endgroup\$
    – DJMcMayhem
    Commented Jan 29, 2019 at 22:35
  • \$\begingroup\$ Gotcha, I'll make sure to use recommendations from now on, also I see now that i was being repetitive! Hopefully now it looks better and makes sense \$\endgroup\$ Commented Jan 29, 2019 at 22:39
  • 2
    \$\begingroup\$ @KrystosTheOverlord Maybe you misunderstood something, requirements are better than recommendations here. \$\endgroup\$ Commented Jan 29, 2019 at 22:41
  • \$\begingroup\$ Oh, now i see, I feel like an idiot. Thanks for pointing that out, I'm still a little new to all of this. \$\endgroup\$ Commented Jan 29, 2019 at 22:44

1 Answer 1

12
\$\begingroup\$

Gol><>, 78 bytes

\<"2ss}}l2%?:}a`(:&K&:&]r&[r~H>.!01<<\

\<<10!.>H~r[&r]&:&K&:(`a}:?%2l}}ss2"<\

Try it online!

Verification!

A variation on the radiation hardened quine I posted yesterday. It's a little more complex since it needs to reverse the copied section using the undocumented [] operators, as well as redirect the pointer in one copy. If you're a little confused about why it doesn't look like a palindrome, remember that ><> is a palindrome itself.

\$\endgroup\$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.