Permalink
Browse files

fixin tests and a new print statement

  • Loading branch information...
1 parent 1d40bc2 commit 0c72454d7cbb0f5af18e2b7197cf3a1801b4831b Ben Feigin committed Feb 22, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −4 models/cards.rb
  2. +1 −1 models/round.rb
View
@@ -11,12 +11,12 @@ def <=> other_card
face <=> other_card.face
end
- def is_a?(klass)
- klass == Card || self === klass
- end
+ #def is_a?(klass)
+ # klass == Card || self === klass
+ #end
def == other_card
- face == other_card.face && suit == suit.value
+ face == other_card.face && suit_code == other_card.suit_code
end
alias :eql? :==
View
@@ -30,7 +30,7 @@ def play!
((non_blinds_for_player(player).size == 0) ||
(bet = player.current_bet) != @current_bet)) do
puts "Min bet: $#{@current_bet}"
- puts "Action to #{player.inspect} with current bet #{bet}. Hand: #{player.cards.collect { |c| c.value.to_s + c.suit.to_s}}"
+ puts "Action to #{player.inspect} with current bet #{bet}. Hand: #{player.cards.collect { |c| c.value_code.to_s + c.suit_code.to_s}}"
puts
action_hash = player.get_action(turn_data)

0 comments on commit 0c72454

Please sign in to comment.