Trilogy Education Services Full-Stack Web Developer Program
University of Miami Cohort - 201710FSF3
Week 03 Homework Assignment:
Create a computer game using javascript.
In this assignment, you'll create a computer game: Psychic. This app will run in the browser, and feature dynamically updated HTML powered by your JavaScript code.
-
Choose a theme for your game! In the demo, we picked an 80s theme: 80s questions, 80s sound and an 80s aesthetic. You can choose any subject for your theme, though, so be creative!
-
Use key events to listen for the letters that your players will type.
-
Display the following on the page:
-
Press any key to get started!
-
Wins: (# of times user guessed the word correctly).
-
If the word is
madonna, display it like this when the game starts:_ _ _ _ _ _ _. -
As the user guesses the correct letters, reveal them:
m a d o _ _ a.
-
-
Number of Guesses Remaining: (# of guesses remaining for the user).
-
Letters Already Guessed: (Letters the user has guessed, displayed like
L Z Y H). -
After the user wins/loses the game should automatically choose another word and make the user play it.
- Play a sound or song when the user guesses their word correctly, like in our demo.
- Write some stylish CSS rules to make a design that fits your game's theme.