Here we go again with a new project! Let’s make sure you understand the concepts so far. The main goal of this project is to use hooks or lifecycle methods as well as a lot of state. The idea for this project comes from this site. It’s a great resource for project ideas.
How The Game Works
Go play around with this student’s solution to find out for yourself how the Memory game works. Although this example uses cartoon characters, you can use anything you like for your game.
- Create a new project using
- Take a little bit of time to think about how you want to implement your application, the features you want to implement, which components you need, and how to structure your application. Your application should include a scoreboard, which counts the current score, and a “Best Score”, which shows the best score you achieved thus far. You also need a couple of cards that display images and possibly informational text. There should be a function that displays the cards in a random order anytime a user clicks one. Be sure to invoke that function when the component mounts.
- Now that you’ve thought about the structure of your application, set up the folder structure and start creating the components. We suggest you use functional components and therefore hooks in this project.
- Style your application so you can show it off!
- As always, push the project to GitHub.