From: Dylan Rodriguez on
How do I print the dashes and letters to represent the word to be
guessed.

The letters guessed by the player are properly put into the respective
arrays.

Whatever I try to do I either get all dashes back or the whole word back

_ _ _ _ or f i s h, never f _ _ h

My arrays are @correct_guesses and @incorrect_guesses

How do I get it to say puts @correct_guesses in the right blanks and if
the guess is @incorrect_guesses to leave it blank
--
Posted via http://www.ruby-forum.com/.

From: brabuhr on
On Tue, Dec 1, 2009 at 10:48 PM, Dylan Rodriguez <jovijunki84(a)yahoo.com> wrote:
> Whatever I try to do I either get all dashes back or the whole word back
>
> _ _ _ _  or f i s h, never f _ _ h
>
> My arrays are @correct_guesses and @incorrect_guesses
>
> How do I get it to say puts @correct_guesses in the right blanks and if
> the guess is @incorrect_guesses to leave it blank

It might help us help you if you provide a sample of the code you are
trying that doesn't work. :)

Meanwhile, checkout:
http://ruby-doc.org/core/classes/String.html#M000830

 | 
Pages: 1
Prev: ruby-kerberos
Next: How Do I Change a .gsub