Week 11
View the lecture
Exercises From Lecture
Homework
- Finish the reading on react if you have not.
Assignment
Write a shell game, aka Three Card Monty, using react. Use the typewriter code as a starting point.
It should:
- require the user click on one of three elements, to choose it
- next, reveal all the cards to show if they've picked correctly, and indicate if they've won or lost
- allow the player to play again
- keep and display some sort of score.
Alternative Assignment: If you're feeling lost, you may complete and submit the react tic-tac-toe tutorial instead of the shell game, but it must be clear to me that you actually worked through it and didn't just copy and paste the finished code.
Send a your codesandbox link to zachary.schwartz@qc.cuny.edu by Thursday April 26th at 10am for full credit.