I am trying to print out individual elements of a array using printf, this is what I have:
printf("\nCard %d: %s\t%d\t%s\t%s\n ", cardNum,card[0],card[1],card[2],card[3]) This doesn't really work, well, sort of, it gives me an error like this:
undefined method `[]' for nil:NilClass (NoMethodError) I am really confused on how to do this Ruby, Googled for a while but still couldn't figure out...
Thanks in advance!