class Card

Defined in:

card.cr

Constant Summary

FACES = [["A♠", "A♥", "A♣", "A♦"], ["2♠", "2♥", "2♣", "2♦"], ["3♠", "3♥", "3♣", "3♦"], ["4♠", "4♥", "4♣", "4♦"], ["5♠", "5♥", "5♣", "5♦"], ["6♠", "6♥", "6♣", "6♦"], ["7♠", "7♥", "7♣", "7♦"], ["8♠", "8♥", "8♣", "8♦"], ["9♠", "9♥", "9♣", "9♦"], ["T♠", "T♥", "T♣", "T♦"], ["J♠", "J♥", "J♣", "J♦"], ["Q♠", "Q♥", "Q♣", "Q♦"], ["K♠", "K♥", "K♣", "K♦"], ["??"]]
FACES2 = [["🂡", "🂱", "🃁", "🃑"], ["🂢", "🂲", "🃂", "🃒"], ["🂣", "🂳", "🃃", "🃓"], ["🂤", "🂴", "🃄", "🃔"], ["🂥", "🂵", "🃅", "🃕"], ["🂦", "🂶", "🃆", "🃖"], ["🂧", "🂷", "🃇", "🃗"], ["🂨", "🂸", "🃈", "🃘"], ["🂩", "🂹", "🃉", "🃙"], ["🂪", "🂺", "🃊", "🃚"], ["🂫", "🂻", "🃋", "🃛"], ["🂭", "🂽", "🃍", "🃝"], ["🂮", "🂾", "🃎", "🃞"], ["🂠", "", "", ""]]

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(value : Int32, suit : Int32) #

[View source]

Class Method Detail

def self.draw(game : Game, card : Card) #

[View source]

Instance Method Detail

def is_ace? #

[View source]
def is_ten? #

[View source]
def suit : Int32 #

[View source]
def value : Int32 #

[View source]