Assignment 6: Implementation · React
Working on the Assignment
Rock–Paper–Scissors
50 points
Starting from the code we wrote together in lecture.
First, finish the implementation by addressing the TODOs left over from lecture. This is how the game should work:
Then add the following features.
A “Play Again” Button
20 points
The button must work by resetting the state of the React components, not by reload the page.
Lizard 🦎 and Spock 🖖
20 points
Extend the game following the rules from this The Big Bang Theory episode.
Add an Explanation of Why Someone Won
10 points
With Lizard and Spock the game got too complicated, so a simple “Player 2 wins!” isn’t enough anymore. When the game is over, add an explanation, for example, “Lizard poisons Spock, so Player 2 wins!”
Submission
⚠️ Your assignment is submitted only when you submit the form below.
If you run into problems, send an email to assignment-submission@jhu-oose.com. Include the information about the submission: your GitHub Identifier and the Commit Identifier. Don’t include any information about the feedback—it’s anonymous.