bin/99_game in 99_game-3.0.1.pre.101 vs bin/99_game in 99_game-3.0.1.pre.102
- old
+ new
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
require '99_game'
include CardDeck
-deck = Deck.new true
+deck = Deck.new jokers: true
BEGIN { # Looks at its arguements
ARGV[0] = "-h" if ARGV[0] == "--help"
ARGV[0] = "-v" if ARGV[0] == "--version"
case ARGV[0]
when "-v"
@@ -74,10 +74,10 @@
pause 0.5
print "\tPick a card to play by typing in the name of the card => "
input, turn = gets.chomp, true
for card in user.hand
if card.num == converter(input) && turn
- user.play(card)
+ user.play card
turn = false
end
end
pause 1
puts "\tYou drew a(n) #{user.hand[2].num}"