class Hand 

attr :allocated, :slots, :hidden, :label

def initialize(label, length)
   @slots = length 
   @hidden = length 
   @allocated = 0  
   @label = label  
   
end 

def allocate(length) 
   raise "hidden #{@hidden}  offers no room for #{@length} slots" if length > @hidden   
   @hidden -= length 
   @allocated += length 
end

def to_s 
  "<Hand #{label} #{hidden} of #{slots} cards hidden >"  
end 
 
def inspect 
  "<Hand #{label} #{hidden} of #{slots} cards hidden >"  
end 
 

end 
