Calculator Community > Community Contests
Codegolf - The Reboot #7
(1/1)
LDStudios:
Sorry this is a bit late but...
Stranded on a strange alien planet, you are picking up morse code signals from Earth. Unfortunately, you aren't very practiced with morse code, so you create a program to interpret and translate it. Unfortunately, the alien computer you are using doesn't have any number keys, and you have no way of using any numbers in your code.
Challenge
-Create a program that can convert a string made up of "_" and "." into letters.
-You may not use any numbers.
-The input can be in any form you want, and letters should be separated by spaces; paces between words are separated by multiple spaces.
-Any number of consecutive spaces greater than one in the input, should be represented by a single space in the output
-Outputs should be in all upper case
-Any combination of "_" and "." that doesn't make sense returns a "!"
Example
Input:
--- Code: ---".... .. _ .... . . ....."
--- End code ---
Output:
--- Code: ---"HI THERE!"
--- End code ---
Use this key to convert morse code to letters:
SCORES:
Ranking: User: Language: Score:
1. Juju Ruby 175
Juju:
Interesting challenge here. Got it down to 175 bytes, despite not having any numbers.
TIfanx1999:
I don't know if I'll get around to it, but this looks like a very interesting challenge. :)
Navigation
[0] Message Index
Go to full version