On the Subject of XmORse Code
This would be easier to solve if these flashes made actual letters.
On the module you will see 5 letters that will repeatedly flash. Your goal is to figure out what order you should press the letters. Pressing the letters in the wrong order will cause a strike and generate a new set of letters and flashes.
Step 1: Getting the first string
- Each letter will have a different sequence of flashes, each comprised of 2 parts with a pause between.
- The first part is used for this step. It is marked with a long pause before it.
- This part is a sequence of dots and dashes but it won’t necessarily be valid letter or number in morse.
- Take each part in reading order (left to right, top to bottom) and convert them into binary where a dot = 0 and a dash = 1.
- Concatenate the binary into one string.
Step 2: Getting the second string
- Convert each letter to morse code (use Appendix MORSE if you don’t know morse code).
- Convert the morse code to binary in the same way as before.
- Concatenate the binary into one string.
- Both strings will always be the same length.
Step 3: XOR
-
Use the truth table below to XOR the 2 binary strings.
Bit 1 Bit 2 Output 0 0 0 0 1 1 1 0 1 1 1 0 - The second part of the flashes is a number in morse code.
- Use the 5 numbers to break the output of the XOR into 5 parts.
- For example, if the 5 numbers were 3, 1, 2, 2, and 1 and the binary string was 101101100, the result would be 101, 1, 01, 10 and 0.