Skip to content

bsima/morse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morse

A simple morse code interpreter. Currently a naive, lookup-table implementation. I use mypy for type checking, 'cause it's fun..

Setup

Make sure you have Python 3.4, pip, and virtualenv. Then:

$ git clone git@github.com:bsima/morse.git && cd morse
$ virtualenv env
$ source env/bin/activate
(env)$ pip install -r requirements.txt
(env)$ python morse.py -h # Show usage information

Example

Morse will automatically detect the input method, just be sure to wrap <msg> in quotes:

(env)$ python morse.py "github"
--. .. - .... ..- -...
(env)$ python morse.py "--. .. - .... ..- -..."
github

Todo:

Implement the Boyer-Moore algorithm (or similar).

About

Morse code interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published