Skip to content

A ruby program that debugs a morse code into a normal readable language

License

Notifications You must be signed in to change notification settings

jmoseka/decode-morse-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MorseCode

Using Ruby to solve basic coding challenges and decode morse code.

Setup

- Install Ruby in local environment.
- Run a program using command line.

Prerequisites

  • Understand Ruby basic syntax
  • No linter errors.

Project requirements

- 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.

Getting Started

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.

Authors

Author 1:

👤 Jamila Moseka

Author 2:

👤 Brian Nyachae

Author 3:

👤 Hammed Adisa

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT is licensed.

About

A ruby program that debugs a morse code into a normal readable language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages