class Player
Attributes
hand[RW]
hand_done[RW]
money_left[RW]
no_of_hands[RW]
player_no[RW]
Public Class Methods
instance_collector()
click to toggle source
# File lib/mblackjack/player.rb, line 15 def self.instance_collector @@instance_collector end
new(no_of_hands = 1, money_left)
click to toggle source
# File lib/mblackjack/player.rb, line 6 def initialize(no_of_hands = 1, money_left) @hand = [] @hand_done = [] @no_of_hands = 0 @player_no = player_no @money_left = money_left @@instance_collector << self end