From: "Rob V." Date: 2011-09-30T03:54:16+09:00 Subject: Re: Variables, Arrays and Hashes. "Jesús Gabriel y Galán" wrote in post #1024250: > On Thu, Sep 29, 2011 at 8:40 PM, Rob V. wrote: >> where: >> >> Any thoughts? > Can you show a complete example in which we can see the error? > Things to check: > - Are you sure you are putting the keys of the hash in the arrays? > - What does puts player1.first outputs: "Ah" or 1? > > Jesus. > > Jesus. I gave you an example where it doesn't work. >"puts deck[player1.first] >does not return the value of the card. I've also tried created place >holder variables without avail:" and I have above that: >" puts player1.first >it will give the appropriate first card in the hand but:" card in hand meaning the "Ah". More specifically print player1.first outputs ["ah"] and puts player1.first outputs Ah -- Posted via http://www.ruby-forum.com/.