lib/language_cards/modes/translate.rb in language_cards-0.2.0 vs lib/language_cards/modes/translate.rb in language_cards-0.3.0
- old
+ new
@@ -1,10 +1,10 @@
require 'language_cards/modes/game'
module LanguageCards
module Modes
class Translate < Game
def match? input
- current.translation == input
+ current.translation.any? {|value| value == input }
end
def mode
:translate
end