Red Green Vocabulary

Rules of the game
        1. This game is a hangman game.
        2. You have 10 guesses.
        3. You have cheats.
        4. I have enabled cookies on this page so the background color stays on after each page load
        5. I also made three more buttons
              a "Solve Me" button/function
              a reset color button/function
              and a stats button.

Enter your guess:

Wrong Guesses:


Previous Guesses:









My Thoughts

The only major problem I had on this part was with my checkGuess function, specifically the problem I was having was with the page saying you have won either prematurely or not at all, but i fixed this with the following block of code in the check guess function below guessedLetter Definition
if (guessedLetter= =""){
return
}
It works now, I am so pleased with myself, and of course my wonderfully awesome soon to be world famous TA, she helped me troubleshoot it.
I Had one other minor problem and that was with my world famous costumize function, the problem was it did not keep the name one typed in past the end of the function. I realized the problem was that I declared it in the body of the function and outside the function, so the value was not stored in the global variable as it should be but in a local variable by the same name. When I removed the declaration inside the function it worked. I may enable cookies to make it store things after you are done with the game
Update:
I have added cookies, these work great, I had a few errors at the beginning, but these were easy to fix, I had a syntax error when calling the createcookie function, and i forgot to increment nodiologue to true. The reason I enabled cookies was to make it so it did not ask the user everytime, what colors he/she wanted and what there name was. I took the cookie script from a webpage offering it for free use, I have credited the source.
I have added a "solve me" function, you click a button, a prompt box pops up, and it says, "Guess the Word" the user can then guess the word, if cheats are off and you in it says You won...genius, if cheats are on it says you won sort of you cheater, if you loose, it says, 'no, wrong word, "no soup for you"', i got "'s to show up by escaping them. I had a little trouble at first, it was not filing in the blanks before it reloaded, and it was saying you lost after it loaded, so I rearranged the code and it works great.
I have added a reset color and stats function as well, the stats function keeps track of total number of wins and losses, number of gueses by using the solve me function. The stats function is still slightly buggy. The reset color function/button is preety obvious what this does. I had no problem with this function.
How Many Games Have Been Played Site Meter