Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablobona/decode_morse_code_message
Decrypting message written in Morse code with Ruby
https://github.com/pablobona/decode_morse_code_message
Last synced: 4 days ago
JSON representation
Decrypting message written in Morse code with Ruby
- Host: GitHub
- URL: https://github.com/pablobona/decode_morse_code_message
- Owner: PabloBona
- Created: 2023-08-22T22:49:43.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2023-08-25T13:44:08.000Z (over 1 year ago)
- Last Synced: 2024-05-17T15:43:01.385Z (7 months ago)
- Language: Ruby
- Size: 79.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Decode Morse Code Message
This project involves creating a Ruby script to decode Morse code messages into plain text. The script provides methods to decode individual Morse code characters, whole words, and entire messages. Reuse methods whenever possible to maintain DRY (Don't Repeat Yourself) code.# ๐ Table of Contents
- [๐ About the Project](#about-project)
- [๐ Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [๐ป Getting Started](#getting-started)
- [Setup](#setup)
- [๐ฅ Authors](#authors)
- [๐ค Contributing](#contributing)
- [โญ๏ธ Show your support](#support)
- [โ FAQ](#faq)
- [๐ License](#license)# ๐ [Decode Morse Code Message]
This project aims to create a Ruby script that can decode Morse code messages. The script includes methods for decoding Morse code characters, words, and messages. The primary goals are to ensure code reusability through method reuse and to provide an effective way of translating Morse code into plain text.
## ๐ Built With
This project is built using Ruby, a dynamic, open-source programming language known for its simplicity and productivity. Ruby's elegant syntax and powerful features make it a popular choice among developers.Visit the official [Ruby Website](https://www.ruby-lang.org/) website to learn more about the language and its capabilities.
## ๐ป Getting Started
To begin using the Morse Code Decoder, follow these steps:1. Clone this repository to your local machine:
```sh
git clone https://github.com/PabloBona/decode_morse_code_message.git
```
```sh
cd decode-morse-code
```
2. Run the script to decode a Morse code message:```sh
ruby decode_morse_code.rb
```This project is implemented using the Ruby programming language, known for its elegant syntax and flexibility. Ruby provides a suitable foundation for this Morse code decoding project due to its ease of use and string manipulation capabilities.
## Usage of Ruby
Ruby is used extensively throughout the project for various tasks, including:
- Implementing the decoding algorithms.
- Creating reusable methods for character, word, and message decoding.
- Manipulating strings and performing pattern matching.
- Executing the script to decode Morse code messages.The project leverages Ruby's strengths to provide an efficient and user-friendly Morse code decoding solution.
This Morse Code Decoder project offers several key features that enhance its functionality:
- **Character Decoding:**
The project provides a method to decode individual Morse code characters, converting them into their corresponding uppercase alphabetic characters. This feature forms the foundation for decoding words and messages.- **Code Reusability:**
To ensure clean and efficient code, the project follows the DRY (Don't Repeat Yourself) principle. Methods are designed to be reusable, reducing redundancy and promoting maintainability.- **Flexible Adaptation:**
The script's modular structure facilitates future expansion or customization. Additional decoding methods or enhancements can be integrated seamlessly.These key features collectively contribute to a versatile and effective Morse code decoding tool.
1. Clone this repository to your local machine:
```sh
git clone https://github.com/PabloBona/decode_morse_code_message.git
```
```sh
cd decode-morse-code
```
2. Run the script to decode a Morse code message:```sh
ruby decode_morse_code.rb
```๐ค **Pablo Bonasera**
- GitHub: [@Pablobona](https://github.com/PabloBona)
- LinkedIn: [@Pablobona](https://www.linkedin.com/in/pablo-bonasera/)๐ค **lRebornsl**
- GitHub: [@lRebornsl](https://github.com/lRebornsl)
- Twitter: [@RebornsDev](https://twitter.com/RebornsDev)
- LinkedIn: [Anthony Vรกsquez](https://www.linkedin.com/in/avvm98/)Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
If you like this project or if it helped you, please give a โญ๏ธ. I'd really appreciate it!
I would like to thank Microverse and all my peers and colleagues at Microverse for giving me the opportunity to work on this project.
- **[How do I decode a Morse code character using this project?]**
To decode a Morse code character, use the `decode_char` method provided in the Ruby script. Pass the Morse code character as an argument to the method. For example:
```ruby
decoded_char = decode_char(".-")
puts "Decoded character: #{decoded_char}" # Output: "Decoded character: A"This project is [MIT](MIT.md) licensed.