Failure output

I’ve taken this dense-and-great answer, and made it my own. It’s not better, I did this only for the sake of learning it. While this doesn’t fulfill the specifications as originally asked, the specifications are very different than normal hangman (you have to explicitly specify indexes at which the guessed-letter applies to). This application is much closer to normal Hangman rules.

The major differences, as compared to Bohemian’s, are:

It’s a do-while, instead of a for loop.

It only keeps unique characters, and compares against a separate currCharGuessAsStr, instead of the first character in allGuessCharsStr.

It notifies the user of bad input (no characters) instead of crashing, and requires input to be a single letter.