In this project I created a word "Phrase Hunter" game kind of like a digital hangman. The instructions consisted of using Javascript and OOP to select a random hidden phrase where the player playing the game tries to guess the phrase, while maintaining their lives. Everytime the player guesses a letter, the program compares the letter the player has chosen with the random phrase. If the letter is in the phrase, the gameboard displays the chosen letters on the screen. You continue to select letters until they guess the phrase (and win), or make five incorrect guesses (and lose).The player can guess a letter only once. After they’ve guessed a letter, the programming will disable that letter on the onscreen keyboard.
04
Sources used for this project: MDN W3 Study Guide, and Videos from unit 4
Extra Credit:
I added keyboard functionality which lets the players use their physical computer keyboard to enter guesses.
I made the project my own by experimenting with the backgrounds, adding an image in the css file, and changing the background of the colors in the keyboard.