class GooseGame::Cell::Bridge

Public Instance Methods

call(player, dice) click to toggle source
Calls superclass method GooseGame::Cell::Base#call
# File lib/goose_game/cell.rb, line 59
def call(player, dice)
  super.tap do |pos|
    @tokens << "#{player} jumps to #{pos}"
  end
end

Private Instance Methods

dest() click to toggle source
# File lib/goose_game/cell.rb, line 69
        def dest
  "The Bridge"
end
position() click to toggle source
# File lib/goose_game/cell.rb, line 65
        def position
  num * 2
end