lib/hand.rb in 99_game-4.0.3 vs lib/hand.rb in 99_game-4.0.4
- old
+ new
@@ -48,16 +48,16 @@
@cards.each do |card|
test_value = case card.num
when "King"
if (@cards - [card]).any? {|card| [4, 9, "Jack", "Queen", "King", "Joker"].include? card.num} || rand < 0.1
99
- else -1
+ else -99
end
when "Joker" then 0
else
$value + card.value
end
- test_value = -1 if test_value > 99
+ test_value = -100 if test_value > 99
outcomes << test_value
end
return outcomes
end
end