A Radiation Hardened Palindromic Quine

7

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!!!

KrystosTheOverlord

Posted 2019-01-29T22:12:29.017

Reputation: 681

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. – James – 2019-01-29T22:35:25.580

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 – KrystosTheOverlord – 2019-01-29T22:39:25.030

2@KrystosTheOverlord Maybe you misunderstood something, requirements are better than recommendations here. – Erik the Outgolfer – 2019-01-29T22:41:11.000

Oh, now i see, I feel like an idiot. Thanks for pointing that out, I'm still a little new to all of this. – KrystosTheOverlord – 2019-01-29T22:44:12.347

Answers

12

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.

Jo King

Posted 2019-01-29T22:12:29.017

Reputation: 38 234