Skip to content

MrAlexZimmerman/Predictions-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Predictions-Game

About
This game runs in the browser, and features dynamically updated HTML and CSS powered by JavaScript code.

Instructions
The computer will randomly pick a letter from the alphabet (a-z|A-Z). The goal is for the user to guess that letter by pressing a key on the keyboard.

The user is given 9 chances to guess the correct letter and the game will display each incorrect guess the user makes.

The game will prevent the user from making any guesses that aren't letters a - z. The game will also prevent the user from repeating previous guesses. Neither of these mistakes will count as one of the user's 9 chances.

Each time the user guesses a letter correctly, their win count increases by one, and the screen will light up with a surprise image. If they fail to guess the correct letter in 9 chances, their losses count increases by one.

Each time the user wins or loses, the game will restart without reloading the page.