Radiation-hardened Quine is a self-printing program written in Ruby. Even if you delete one character, it still works. To play normally, run rquine.rb and check if the output matches the original code. To play abnormally, prepare a script that deletes one character randomly. Generate a broken program and run it to see an output that’s exactly the same as the original code. This is the latest “ascii-art” version based on flagitious’s approach. Yusuke Endoh (@mametter), @hirekoke created it, and it works with 1.9 or later. The program follows the MIT License, and anyone can deal with it without any restriction.
https://github.com/mame/radiation-hardened-quine