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
- Host: GitHub
- URL: https://github.com/carreraprogrammer/ruby_decode_morse
- Owner: carreraprogrammer
- Created: 2023-06-15T21:19:49.000Z (almost 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-06-16T01:54:27.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T20:51:51.524Z (4 months ago)
- Language: Ruby
- Size: 569 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]** 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
Programing language
- **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.
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
```
👤 **Daniel Carrera**
- GitHub: [@carreraprogrammer](https://github.com/carreraprogrammer )
- Twitter: [@carreraprog](https://twitter.com/carreraprog)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/daniel-carrera-85a917244/)
- [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
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/carreraprogrammer/ruby_decode_morse/issues).
If you like this project please give a star.
I wants to thank to my academy and my coding partners that always push me to be my best version
This project is [MIT](./MIT.md) licensed.