On the Subject of Worse Code
U2F5IGdvb2RieWUgdG8gaGVyIGZvciBtZS4g4pml
This module consists of four different “lanes” for inputting Morse code sequences, an LED, and a submit button at the top. Your goal is to provide the module with a valid set of four Morse code sequences— one for each letter— and then perform the final submission when you are ready.
A valid set of letters can be determined via the following procedure:
- Place an observer at the origin of a coordinate plane.
- The light of the LED can move in any of the four cardinal directions, with a long pause in-between repeats of the sequence. Note down the directions, as they represent the directions in which this observer moves throughout the plane. This observer will always face the same direction as it’s movements.
- To convert these movements to letters, consider the turns the observer makes along it’s journey, where each path from the origin it goes in being a different letter.
- Use the movements of the observer to append signal, which combine to form a letter in International Morse code:
- Dot signal is appended upon a left turn.
- Dash signal is appended upon a right turn.
- Upon a U-turn, stop appending symbols and convert your signals to a letter. Only continue appending signal after the observer crosses the origin.
- Order the letters obtained via signal based the observer’s original movement off the origin to eventually obtain that letter, starting with north and going clockwise. These must appear top to bottom on the module.
Each lane is made up of 13 “moments”, where a moment is considered a portion in which there can be either signal— a segment of a dot or dash— or space. “Signal type” refers to consecutive signal which form either a dot or dash.