Hangman Help

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

On Tue, Dec 1, 2009 at 10:48 PM, Dylan R. [email protected]
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. :slight_smile:

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