Skip to content

Instantly share code, notes, and snippets.

@omerisimo
omerisimo / mores_code.rb
Last active August 29, 2015 14:03
A solution to the Ruby Quiz: http://rubyquiz.com/quiz121.html
#################################################################
# A solution to the Ruby Quiz: http://rubyquiz.com/quiz121.html #
#################################################################
INPUT = "...---..-....-" # Eugenia or Sofia
HELLO = "......-...-..---" # Hello
OK = "----.-" # Ok or Toa
class Morse
LETTERS_REPRESENTATION = {
# Kata description: http://codingdojo.org/cgi-bin/index.pl?KataTennis
module Tennis
class Player
attr_reader :name, :points_won
def initialize(name)
@name = name
@points_won = 0
end