Skip to content

Instantly share code, notes, and snippets.

View bnwlkr's full-sized avatar

Ben Walker bnwlkr

  • Vancouver
View GitHub Profile
@bnwlkr
bnwlkr / decode_necklace.py
Last active December 10, 2020 18:45
Morse code necklace decode attempt
# https://www.reddit.com/r/morsecode/comments/k9x18w/please_help_with_this_necklace/
# tried with
# - https://github.com/dwyl/english-words/blob/master/words_alpha.txt (english)
# - https://github.com/mertemin/turkish-word-list/edit/master/words.txt (turkish)
# assuming single whole word, could try substrings as well
import unidecode
MORSE = {'a': '.-', 'b': '-...', 'c': '-.-.',
'd': '-..', 'e': '.', 'f': '..-.',