Scott Andrechek wrote:
> I was wandering if it is possible to have user inputted words stored and
> each letter as a seperate variable. I know i could just have each letter
> inputted indvidually but thats time consuming on the users part. Here's
> an example in case you don't know what i mean:
> Ex.
> USER: Tomato
> COMP: Type a number to have a letter displayed
> USER: 2
> COMP: o
> USER: 5
> COMP: t

Check out String#split

irb(main):005:0> x = "tomato"
=> "tomato"
irb(main):006:0> y = x.split ''
=> ["t", "o", "m", "a", "t", "o"]
irb(main):007:0> y[0]
=> "t"
irb(main):008:0> y[5]
=> "o"


-- 
MagickWand for Ruby - http://magickwand.rubyforge.org/