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

https://github.com/carreraprogrammer/ruby_decode_morse

In this repository, I created a Ruby program to decipher morse code
https://github.com/carreraprogrammer/ruby_decode_morse

Last synced: about 2 months ago
JSON representation

In this repository, I created a Ruby program to decipher morse code

Awesome Lists containing this project

README

        

# 📗 Table of Contents

- [📗 Table of Contents](#-table-of-contents)
- [📖 Paws and Claws Clinic ](#-paws-and-claws-clinic-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [👥 Authors ](#-authors-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [🙏 Acknowledgments ](#-acknowledgments-)
- [❓ FAQ ](#-faq-)
- [📝 License ](#-license-)

# 📖 [DECODE MORSE WITH RUBY]

**[DECODE MORSE]** is a project where I created a program with ruby in order to decode morse codes. This class was focused on solving problems skills with ruby methods

## 🛠 Built With

### Tech Stack

Programing language

### Key Features

- **Morse Code Dictionary:**: Create a dictionary or hash map that maps Morse code characters to their respective alphabets, numbers, and special characters.
- **Input Validation**: Validate the input to ensure it contains valid Morse code characters (dots, dashes, and spaces) only.
- **SDecoding Function**: Implement a method that takes Morse code as input and returns the decoded message as a string.
- **Character Separation**: Split the Morse code input into individual characters, separated by spaces, to process them one by one.
- **Word Separation**: Detect spaces between words in Morse code and add appropriate spacing between the decoded words in the output.

(back to top)

## 💻 Getting Started

To get a local copy up and running, follow these steps.

### Prerequisites

In order to run this project you need:

- Ruby installed on your machine. You can download it from the [official website](https://www.ruby-lang.org/es/downloads/).

### Setup

Clone this repository to your desired folder:

```sh
cd your-folder
git clone https://github.comc/carreraprogrammer/ruby_decode_morse.git
```

### Install

Navigate into your project directory

```sh
cd ./ruby_decode_morse
```

### Usage

Use ruby to interact with the program

```sh
ruby decode_morse.rb
```

### Run tests

To run tests, run the following command (functionality will be added in the future):

```sh
rubocop
```

(back to top)

## 👥 Authors

👤 **Daniel Carrera**

- GitHub: [@carreraprogrammer](https://github.com/carreraprogrammer )
- Twitter: [@carreraprog](https://twitter.com/carreraprog)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/daniel-carrera-85a917244/)

(back to top)

## 🔭 Future Features

- [x] Create a method to decode a Morse code character, takes a string parameter, and return the corresponding character in uppercase
- [x] 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
- [x] 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
- [x] Reuse methods whenever possible

(back to top)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/carreraprogrammer/ruby_decode_morse/issues).

(back to top)

## ⭐️ Show your support

If you like this project please give a star.

(back to top)

## 🙏 Acknowledgments

I wants to thank to my academy and my coding partners that always push me to be my best version

(back to top)

## 📝 License

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

(back to top)