Class: GooseGame::Cell::Winning

Inherits:
Base
  • Object
show all
Defined in:
lib/goose_game/cell.rb

Instance Attribute Summary

Attributes inherited from Base

#gameboard, #num

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from GooseGame::Cell::Base

Instance Method Details

#call(player, dice) ⇒ Object



51
52
53
54
55
# File 'lib/goose_game/cell.rb', line 51

def call(player, dice)
  super.tap do |pos|
    @tokens << "#{player} Wins!!"
  end
end