Alright gotcha Dark. I implemented something of the same idea, and that part is taken care of.
Just another part I have to worry about is when I have probe: GGGg
or something of uppercase.
It outputs two stuff: "Your probe must be a word of 4 to 6 lower case letters" and "I don't know that word", when it only is supposed to do so once.
So I'm trying to call a function so that makes it only say "Your probe must be a word of 4 to 6 lower case letters" when the probe is in upper case:
Can you tell me if this is right? I plan to call this function inside the for loop: for (b=0; b < strlen(guess); b++)
int case (guess[b], wordList[h])
{
if (isupper(guess[b])) // if there are any uppercase letters
{
cout << "Your probe must be a word of 4-6 ... " << endl;
break;
}
if ( strcmp (wordList[h], guess) != 0 ) // if guess is not in wordlist
{
cout << "I don't know that word" << endl;
}
}