Using Ruby to solve basic coding challenges and decode morse code.
- Install Ruby in local environment.
- Run a program using command line.
- Understand Ruby basic syntax
- No linter errors.
- Create a method to decode a Morse code character, takes a string parameter, and return the corresponding character in uppercase (e.g. decode_char(".-") returns "A").
- Create a method to decode an entire word in Morse code, takes a string parameter, and return the string representation. Every character in a word will be separated by a single space (e.g. decode_word("-- -.--") returns "MY").
- Create a method to decode the entire message in Morse code, takes a string parameter, and return the string representation. Every word will be separated by 3 spaces (e.g.
decode("-- -.-- -. .- -- .")
returns "MY NAME").
- Make sure that your code is DRY.
To view the morse code;
a) Clone the project
```terminal
git@github.com:jmoseka/decode-morse-code.git
```
b) View the folder
- cd into the project directory
```terminal
cd MorseCode.git
```
- Congrats! you can now view the queries in your local computer.
👤 Jamila Moseka
- GitHub: @jmoseka
- Twitter: @milamoseka
- LinkedIn: jamila-moseka
👤 Brian Nyachae
- GitHub: @githubBria222
- Twitter: @briannyachae9
- LinkedIn: Brian-Nyachae
👤 Hammed Adisa
- GitHub: @AbuRayhaan
- Twitter: @ayinla2011
- LinkedIn: Hammed Adisa
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone whose code was used
- Inspiration
- etc
This project is MIT is licensed.