hang man problem
Sorry, I just got it to work.. Thanks anyways..
Hello, i'm currently working on this hangman project and I cant seem to get it to work. basiacally the main thing that its doing is its only testing the last charactor in the string that its using as the hidden word ive worked for a few days on this and i cant seem to fix it.. can any one see what im doing wrong here?
Thanks in advance!
public class hangMan
public static void main(String args)
boolean stillPlaying = true;
String word = "hat";
String wordAsBlanks = new String [word.length()];
CinReader reader = new CinReader();
System.out.print(wordAsBlanks[i] = " - ");
String userGuess = reader.readString();
for(int j = 0;j<word.length();j++)
wordAsBlanks[j] = userGuess;
Sorry, I forgot to get rid of that for loop using k as an increasment operator around System.out.println("Guess::"); I just removed it.