Rainbow Explosion Hangman App

So I am working on a project from last semester called Rainbow Explosion. <a id=”fnref-1” class=”footnote” title:=”see footnote” href=”#fn-1”>[1]</a>
It is a hangman app with a twist. Here is an excerpt of the instructions:
Project #3: Rainbow Explosion
It is written entirely in Java and I think I talked about it a few weeks ago. Mel, a Java vet on the Code Newbie Slack team (and a woman in tech!) said for me to think about it from different angles. For instance, think about it from what letters aren’t being guessed.
So I went all in with an array of chars that I could iterate through with a for loop. It looked awful. It looked like this:
char [] = {’b’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’, ‘i’, ‘j’, ‘k’, ‘l’, ‘m’, ‘n’, ‘o’, ‘p’, ‘q’, ‘r’, ‘s’, ‘u’, ‘v’, ‘w’, ‘x’, ‘y’, ‘z’};
Messy. I needed to use a for loop to iterate, an if/else conditional, and a do/while loop.
I thought about it and consulted her with my code. She gave me more advice– use .contains() to see if a char is in a string. Yes.
It Works! Sort Of…

So my code looks like this: <a id=”fnref-2” class=”footnote” title:=”see footnote” href=”#fn-2”>[2]</a>
After some trial and error, scope and return statement issues, it ran. It does not run correctly. Here is the output from my terminal:

I had to Ctrl-C to get out of it.
Back to the drawing board.
- Link to the repository is private now. <a class="reversefootnote" title:="return to article" href="#fnref-1"> ↩</a>
- At the request of my mentor I took this down. She didn't want future classes to be able to see it. <a class="reversefootnote" title:="return to article" href="#fnref-2"> ↩</a>

So I am working on a project from last semester called Rainbow Explosion. <a id="fnref-1" class="footnote" title:="see footnote" href="#fn-1">[1]</a> It is a hangman app with a twist. Here is an excerpt of the instructions:
Project #3: Rainbow ExplosionIt is written entirely in Java and I think I talked about it a few weeks ago. Mel, a Java vet on the Code Newbie Slack team (and a woman in tech!) said for me to think about it from different angles. For instance, think about it from what letters aren’t being guessed. So I went all in with an array of chars that I could iterate through with a for loop. It looked awful. It looked like this: char [] = {’b’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’, ‘i’, ‘j’, ‘k’, ‘l’, ‘m’, ‘n’, ‘o’, ‘p’, ‘q’, ‘r’, ‘s’, ‘u’, ‘v’, ‘w’, ‘x’, ‘y’, ‘z’}; Messy. I needed to use a for loop to iterate, an if/else conditional, and a do/while loop. I thought about it and consulted her with my code. She gave me more advice– use .contains() to see if a char is in a string. Yes.
It Works! Sort Of…

So my code looks like this: <a id="fnref-2" class="footnote" title:="see footnote" href="#fn-2">[2]</a> After some trial and error, scope and return statement issues, it ran. It does not run correctly. Here is the output from my terminal:

I had to Ctrl-C to get out of it. Back to the drawing board.
- Link to the repository is private now. <a class="reversefootnote" title:="return to article" href="#fnref-1"> ↩</a>
- At the request of my mentor I took this down. She didn't want future classes to be able to see it. <a class="reversefootnote" title:="return to article" href="#fnref-2"> ↩</a>