Class: RomanjiGame
- Inherits:
-
Object
- Object
- RomanjiGame
- Defined in:
- lib/learn-japanese/game/romanji-game.rb
Instance Method Summary collapse
-
#initialize(level = 1, max = 10) ⇒ RomanjiGame
constructor
A new instance of RomanjiGame.
- #run ⇒ Object
Constructor Details
#initialize(level = 1, max = 10) ⇒ RomanjiGame
Returns a new instance of RomanjiGame.
8 9 10 11 12 13 14 |
# File 'lib/learn-japanese/game/romanji-game.rb', line 8 def initialize(level=1, max=10) @level = level @score = 1 @max_score = max @words = Dictionary.words end |