class Dealer

Attributes

deck[RW]
hand[RW]

Public Class Methods

new() click to toggle source
# File lib/dealer.rb, line 5
def initialize 
  @deck = Deck.new
  @hand = Hand.new
end

Public Instance Methods

deal() click to toggle source
# File lib/dealer.rb, line 27
def deal
  @hand.cards << @deck.cards.pop
end
Also aliased as: river, turn
deal_to_player(player) click to toggle source
# File lib/dealer.rb, line 10
def deal_to_player(player)
  player.cards << @deck.cards.pop
end
flop() click to toggle source
# File lib/dealer.rb, line 14
def flop
  3.times{ |n| deal }
end
initial_truco() click to toggle source
# File lib/dealer.rb, line 18
def initial_truco
  3.times { |n| player.cards << @deck.cards.pop  }
end
river()
Alias for: deal
turn()
Alias for: deal