This task will require you to create a web page Morse Code translator. The User Interface will have to look good but should remain simple (additional features, ie. sounds, lights, etc, should only be added once the MVP has been completed.)
-
Create a user interface that allows the user to either input some English text or some Morse Code
-
Create JS functions that would allow the user to:
- translate their English text into Morse Code
- Morse Code into English text
-
Make sure to handle spaces properly (ie. there is 1 space between English words, but one space between Morse Code characters)
-
Must have at least two test suites i.e (two describe blocks) - be mindful we haven't covered DOM testing see Alex if you really want to do that
// A to Z in Morse Code
{
"A": ".-",
"B": "-...",
"C": "-.-.",
"D": "-..",
"E": ".",
"F": "..-.",
"G": "--.",
"H": "....",
"I": "..",
"J": ".---",
"K": "-.-",
"L": ".-..",
"M": "--",
"N": "-.",
"O": "---",
"P": ".--.",
"Q": "--.-",
"R": ".-.",
"S": "...",
"T": "-",
"U": "..-",
"W": ".--",
"X": "-..-",
"Y": "-.--",
"Z": "--.."
}
- Create an empty main branch
- Do all work in develop branch
- Add coach who is doing 1:1 as a contributor to your repo
- Tag coach in PR from develop branch into main for 1:1
- Cover more than just A-Z characters
- Store translation in a json file
- Do fancy things with sound or flashes (only if you have heaps of spare time)