This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Card | |
attr_accessor :suit, :face_value | |
def initialize(s, fv) | |
@suit = s | |
@face_value = fv | |
end | |
def pretty_output | |
"The #{face_value} of #{find_suit}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "****************************" | |
puts "Welcome to Ruby Blackjack!" | |
puts "****************************" | |
puts "" | |
# Deck and Suit | |
suits = ['Diamonds', 'Spades', 'Hearts', 'Clubs'] | |
cards = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'Jack', 'King', 'Queen', 'Ace'] |
NewerOlder