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\$
  • \$\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 Jan 29 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\$ – KrystosTheOverlord Jan 29 at 22:39
  • 2
    \$\begingroup\$ @KrystosTheOverlord Maybe you misunderstood something, requirements are better than recommendations here. \$\endgroup\$ – Erik the Outgolfer Jan 29 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\$ – KrystosTheOverlord Jan 29 at 22:44
10
\$\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\$
  • \$\begingroup\$ Oh my god, i didn't think there would be an answer this quickly... Good job! You are not only the first, but that program looks pretty hard to top! \$\endgroup\$ – KrystosTheOverlord Jan 30 at 0:15
  • \$\begingroup\$ I just remembered, once i clicked the link, your program is what inspired me to create this challenge. Once i saw that it was possible i thought it would be fun to go and make it even harder! Thanks to you and TRITICIMAGVS for creating the inspiration for this! \$\endgroup\$ – KrystosTheOverlord Jan 30 at 1:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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