My coworker and I work on a legacy piece of software that we hate sometimes. Whenever you run it, debug asserts come flying everywhere, and it's never a guarantee that anything will work. The motivation for this round of code golf came from my coworker saying the following about our software.
"It's like every time you run this program, you're agreeing to some terms of service that says every 17th bit on your hard drive will be turned into a 1"
Goal: Write a program that will make an exact copy of a file and turn every 17th bit of a text file into a 1
- You may NOT turn EVERY bit of the file to a 1. i.e. your program must show some intelligence that it is only targeting every 17th bit
- You may NOT write to the original file in any way shape or form
- The Winner is the smallest program submission at the end of the month
Have fun with this one! Go!
code-golf
, i.e., shortest code in bytes wins. Acode-challenge
needs a well specified scoring system. 2. Turning every 18th bit of a hard drive into a 1 is only possible by writing directly to the drive. This cannot be accomplished by creating and/or modifying files. 3. Doing this will render the entire drive unusable, so a compliant solution will be destructive. I don't know how well the community will receive a request to write malware... \$\endgroup\$:/
\$\endgroup\$