Question
I need to re-create the classic game of Rock, Paper, Scissors (RPS) BUT WITH A TWIST. I need to use primarily JavaScript (but will also
I need to re-create the classic game of Rock, Paper, Scissors (RPS) BUT WITH A TWIST. I need to use primarily JavaScript (but will also need to factor in some basic HTML5 and light CSS and/or JQUERY for the overall presentation and user experience).
The Basic Rules (to start with) The basic rules of RPS will allow the user to pick between Rock, Paper, Scissors. At this point, l need to highlight the picture of rock, paper, or scissors (designating what the user has selected). Then, the computer will randomly choose rock, paper, or scissors as well as show a separate image that depicts its choice.
The player should be able to see both images simultaneously, so I need 2 images in body, each with its own unique name (and id). Scissors beat Paper, Paper beats Rock, and Rock beats Scissors. Anything else results in a "tie". I need to generate an appropriate message saying whether the user or the computer won (or whether its a tie) for that round.
The game should have a limited number of "rounds" or an ending point for the game - with a final score displayed and a final win/loss message at the end.
The twist... (work backwards and beat the clock): Perfect your ability to think fast by trying to win, lose, or tie versus the computers decision. For example, with a countdown clock running, the computer shows you it's selection first (and tells you if you won or lost). If it shows you paper and tells you to win, you would then have to choose scissors (to win). However if the computer shows you paper and tells you to lose, you must choose rock (in order to "lose" and get points).
It will take quick thinking and nerves of steel! You will be fighting against the clock and a tireless computer foe! Points are collected for correct selections and (doubly) penalized for incorrect ones. Incorporate a high score display as well, and notify the user if they achieved the high score at the end of the game.
Play RPS against a growing sequence of computer throws with a timer. At first, the computer shows you one throw, say rock. Then you choose paper to defeat the computer. Then for the 2nd sequence, the computer will show you the same rock again, but this time followed by, say, paper. Now you must choose paper and then scissors to defeat the computers sequence. The sequence will continue to grow. How many sequences (and how fast) can you maintain your concentration in this RPS version of the classic game of Simon? Incorporate a high score and fastest time display as well, and notify the user if they achieved the high score (with the fastest time) at the end of the game.
It has you wagering highly valuable credits deciding if you can defeat the computer over nine rounds. However, you have some inside information! You know that the computer will choose each throw (rock, paper, and scissors) exactly three times each, you just dont know exactly when. Bet your credits based on your faith in knowing the computers next throw. The catch is, if you tie against the computer on a throw, you must at least DOUBLE your next bet! Bet carefully and amass the largest bank possible. Incorporate a high score display as well, and notify the user if they achieved the high score.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started