In this activity, you will work with a group to build a game using only JavaScript.
The completed application should meet the following criteria:
-
As a user, I want to play Rock, Paper, Scissors against an automated opponent.
-
As a user, I can enter R, P, or S to signify my choice of rock, paper, or scissors.
-
As a user, I expect the computer to choose R, P, or S in return.
-
As a user, I want to be prompted when I enter an invalid choice.
-
As a user, I want the option to play again whether I win or lose.
-
As a user, I want to see my total wins, ties, and losses after I have finished playing.
-
As a user, I want to see how many times I chose each option after I have finished playing.
-
Must use the
alert()
,confirm()
, andprompt()
methods to collect user input and display information to the user. -
The computer's selection must be random to ensure a fair game.
Refer to the documentation:
If you have completed this activity, work through the following challenge with your group to further your knowledge:
- How can you customize the appearance of the
alert()
,confirm()
, andprompt()
dialog boxes?
Use Google or another search engine to research this.
© 2024 edX Boot Camps LLC. Confidential and Proprietary. All Rights Reserved.