Code Nation Fellowship 2 Unit 2 Project - Jeopardy
Students will implement a Jeopardy game.
Below is the recommended order in which to complete the project.
Day 1 - Rendering
render_categories.js
- Note the
categories
array at the top of the file. These are the category headers. - Follow the instructions in the file and write code where it reads
// Add code here
- The output should be:
render_questions.js
- Note the
numCategories
andquestionValues
variables at the top of the file. - Follow the instructions in the file and write code where it reads
// Add code here
- The output should be:
Day 2 - Helper functions
click_handlers.js
-
Students and volunteers should take a minute to read the instructions.
- There is a lot of code in this file and students are asked to carefully append it.
-
Follow the instructions and write code where it reads
// Add code here
-
If done correctly, the following should be true:
- Each question block is clickable
- On-click renders a popup like so:
- Clicking "Show Answer" will show the answer like so:
4. Clicking "Close" will hide the modal and remove the question from the board like so:
Day 3 - Scoring
scoring.js
-
Follow the instructions in the file and write code where it reads
// Add code here
-
If done correctly, the following should be true:
- On launching, there is a new "Current Score: 0" div at the bottom of the board like so:
- After clicking on a question, then clicking "Show Answer", the player is presented with an option to select "Correct" or "Wrong".
- If the player chooses "Correct", the score is updated to reflect the added amount.
- Ensure that choosing "Wrong" subtracts the amount instead.
Extra Credit
- Attempt the bonuses.
- Improve the styling.