From: Josh Rowe Date: 2011-01-21T19:16:51+09:00 Subject: Re: Deleting from hashes I now have it working, this is what it looks like card1 = {:name => "Celtic guardian", :type => "monster", :atk => 1400, :def => 1200, :level => 4} card2 = {:name => "Dark Magician", :type => "monster", :atk => 2500, :def => 2100, :level => 7} card3 = {:name => "Spike Seadra", :type => "monster", :atk => 1600, :def => 1300, :level => 5} $deck = [card1,card2,card3] def draw draw = rand($deck.size) puts draw puts "you drew the card #{$deck[draw][:name]}" $deck.delete($deck[draw]) end 3.times do draw x = $deck.empty? if x == true puts "Game over!" end end Thank you both for answering my beginner questions. I hope I will be able to help people on this forum one day. Kind regards Joshua -- Posted via http://www.ruby-forum.com/.