Questions tagged [radiation-hardening]
This tag is for challenges which require answers to still work when a random edit to the source code is made.
37 questions
4 votes
2 answers
305 views
Radiation Hardening 2: The Randomiser
Inspired by a very recent post here, can you write a program/function that prints (defined by outputting or returning "Hello, World!" (with caps and exclamation) in any manner), before and ...
9 votes
5 answers
835 views
Output greater than without the previous character
For each character in your program, the program with that character removed must produce a number smaller than the program with the next character removed. Your base program isn't required to do ...
6 votes
2 answers
383 views
Tips for radiation hardening
The aim of this post is to gather all the tips that can often be applied to radiation-hardening challenges. Please only post answers which can apply to a large number of languages, and one tip per ...
16 votes
6 answers
4k views
I irradiate your source code, you irradiate your output
Your task is to write a program \$p\$ which outputs a string \$s\$ with the same length as \$p\$, where \$s \neq p\$. If I remove the \$n\$th byte from your program to get program \$q\$, then either \$...
25 votes
25 answers
3k views
Radiation Hardening KOTH
The goal of radiation hardening is to make a program still work after you remove a byte. However, what if a skilled competitor is purposefully trying to mess with you? In this game, each bot will take ...
20 votes
11 answers
2k views
Write a near crystalline program
A pristine program is a program that does not have any errors itself but will error if you modify it by removing any contiguous substring other than the entire program. A crystalline program is sort ...
6 votes
1 answer
726 views
Irradiated Polyglots
Design a function or program that, when run normally, outputs the triangular numbers. However, when any single character is deleted, the program/function should not function in the original ...
26 votes
11 answers
5k views
Make a Hello World using as many bytes as possible
Write a program that outputs the exact string: jan ale o, toki! ("Hello, world" but in toki pona to prevent builtins.) with an optional trailing newline. ...
24 votes
4 answers
2k views
A quantum quine
Your challenge is to write a program that is a quine, meaning it prints out its own source code. For at least one individual character, when it is removed from the program's source, a single different ...
34 votes
22 answers
5k views
Pass on your radiation
The task here is pretty simple. You should write a program that takes a string as input and outputs it (that is a cat program). Additionally when the \$n\$th byte of your program is removed (without ...
17 votes
1 answer
691 views
How short can you get?
You are to write a program that, when given an integer between 1 and 5 (or 0 and 4 if you wish to use 0-indexing), outputs one of Code, ...
3 votes
1 answer
277 views
Number of characters skipped determines code printed [closed]
Write a program which, when every nth character is skipped, it prints n. For example, if every 2nd character is skipped, it prints 2. Example n=0 foobar Output:...
20 votes
2 answers
834 views
Write a radiation-hardened irradiator
The task is to write a radiation-hardened irradiator. What do I mean by that, exactly? An irradiator is a program that, when given a string as input, will output all possible versions of the string ...
10 votes
1 answer
337 views
Radioactive Bit Checking
Note: This is the radiation-hardening version of my previous challenge Pristine Bit Checking. This should be much more difficult than that one. Write a program/function that takes two integers in the ...
-5 votes
3 answers
191 views
Geiger counter prime generation [closed]
This challenge is quite simple to conceptualise, but likely a lot harder to execute. In this challenge, the program will have to detect the number N of its characters that have been randomly changed (...