Radiation is Painful

6

0

A radiation-hardened quine can take a hit and stay standing, but nobody ever said that the quine can't be a wuss about it.

For this challenge, you should write a quine that:

  • If no characters are removed, prints its source code normally.
  • Iff any one character is removed, prints the original program's source code, followed by a new line and then this text:

    Owie! That hurt!
    

    You should only print the original plus that.

Standard quine rules apply for this challenge, and the shortest valid code in bytes wins. See also Radiation Detector!

Nissa

Posted 2019-02-08T02:10:58.973

Reputation: 3 334

5I'm not sure what this adds to the site beyond the quine and radiation hardened quine challenges. – Gabriel Mills – 2019-02-08T02:29:50.357

7There's a little bit of new complexity in both retaining the same behaviour while irradiated, while also being able to tell that it has been irradiated. – Jo King – 2019-02-08T12:34:10.397

No answers