Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

### Tech Stack

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.

### Key Features

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.

(back to top)

### ๐Ÿ›  Setup

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

(back to top)

## ๐Ÿ‘ฅ Authors

๐Ÿ‘ค **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/)

(back to top)

## ๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

(back to top)

## โญ๏ธ Show your support

If you like this project or if it helped you, please give a โญ๏ธ. I'd really appreciate it!

(back to top)

## ๐Ÿ™ Acknowledgments

I would like to thank Microverse and all my peers and colleagues at Microverse for giving me the opportunity to work on this project.

(back to top)

## โ“ FAQ

- **[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"

(back to top)

## ๐Ÿ“ License

This project is [MIT](MIT.md) licensed.

(back to top)