Author Topic: Codegolf - The Reboot #7  (Read 16062 times)

0 Members and 1 Guest are viewing this topic.

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Codegolf - The Reboot #7
« on: July 13, 2015, 12:55:55 pm »
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: [Select]
".... ..        _ .... . . ....."
Output:
Code: [Select]
"HI THERE!"

Use this key to convert morse code to letters:


SCORES:
Ranking:         User:                   Language:                    Score:   
1.                    Juju                     Ruby                             175         
« Last Edit: July 14, 2015, 12:41:09 pm by LDStudios »



Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Codegolf - The Reboot #7
« Reply #1 on: July 14, 2015, 01:58:22 am »
Interesting challenge here. Got it down to 175 bytes, despite not having any numbers.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Codegolf - The Reboot #7
« Reply #2 on: July 15, 2015, 08:28:26 pm »
I don't know if I'll get around to it, but this looks like a very interesting challenge. :)