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