So i've made a big function that will handle the main game mechanics.
Lets say that the word is 'excellent'.
Right now it will output: _ _ _ _ _ _ _ _ _ Guess a word: e
"You guessed: 'e'"
"'e' was found at position: 0."
"Correct guesses: 1"
"e _ _ e _ _ _e_ _ Guess a word: "
What I want to do is that the position will say: 0, x, x, if there is more than one char in the word.
And that correctGuesses will in this example hold 3. I know that 'correctGuesses' is the wrong word.. because it's true that I just made one guess. But you guys get the point.
I've tried different ways to solve this with no luck.