Class: Dat::LogGame
Constant Summary
Constants inherited from Game
Game::MIN_PLAYERS, Game::START_WORD
Instance Attribute Summary
Attributes inherited from Game
#dict, #last, #logic, #min_size, #played, #used, #won
Instance Method Summary collapse
-
#initialize(opt = {}) ⇒ LogGame
constructor
A new instance of LogGame.
- #play(player, word) ⇒ Object
Methods inherited from Game
#display, #forfeit, #next_move!, #time, #to_s, #turn, #whos_turn
Constructor Details
Instance Method Details
#play(player, word) ⇒ Object
11 12 13 14 15 |
# File 'lib/dat/loggame.rb', line 11 def play(player, word) super(player, word) rescue Move => m @logger.log(m.) end |