Rainbow Explosion Hangman App

kickass_rainbow_pic

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…

hangman_world

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:

Screenshot2016-01-13_09-49-47_PM

I had to Ctrl-C to get out of it.

Back to the drawing board.


  1. Link to the repository is private now. <a class="reversefootnote" title:="return to article" href="#fnref-1"> ↩</a>
  2. 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>
kickass_rainbow_pic

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…

hangman_world

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:

Screenshot2016-01-13_09-49-47_PM

I had to Ctrl-C to get out of it. Back to the drawing board.


  1. Link to the repository is private now. <a class="reversefootnote" title:="return to article" href="#fnref-1"> ↩</a>
  2. 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>

Subscribe to Tiffany R. White Blog

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe