A test-driven Java kata: decode a Morse code message back into text.
The exercise is framed as "The Lincoln's Messenger" — a stream of dots and dashes arrives and has to be turned into the words of a known historical proclamation. It was written as a coding-dojo kata, built up test by test.
| Class | Responsibility |
|---|---|
MorseAlphabet |
Maps letters to and from their Morse representation. |
Alphabet |
The alphabet contract. |
MorseEncode |
Translates between text and Morse using the alphabet. |
mvn test