Assignment 6: Implementation · React
Working on the Assignment
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
The button must work by resetting the state of the React components, not by reload the page.
Lizard 🦎 and Spock 🖖
Extend the game following the rules from this The Big Bang Theory episode.
Add an Explanation of Why Someone Won
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!”
⚠️ Your assignment is submitted only when you submit the form below.
If you run into problems, send an email to email@example.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.