Now it's time to use fetch()
to make some GET requests and do something semi-intelligent with the responses.
Now it's time to use fetch()
to make some GET requests and do something semi-intelligent with the responses.
- Review the documentation for jService, an open "Jeopardy" API. Experiment a little and see what data you can get back.
- Use jService when a page loads to retrieve a question and present it to the user. (5 points)
- Provide the user an input box for supplying an answer, and a button for making a guess. (5 points)
- When the user makes a guess, check if the user-supplied answer is the correct answer.
- Award points (based on the "difficulty") to the user if they guess the answer correctly. (5 points)
- Load a new question for the user. (5 points)
- You do not have to provide a win condition.
- Identify a set of categories from the Popular Categories page which you want to display in your Jeopardy.
- On page load, request each category from jService and display them Jeopardy-style in a grid on the page. Show only the point values initially. Display the clue on each cell on click. (8 points)
- Above your grid (or at the top of it), show the category for each column. (4 points)
- Use your Grid and Cell classes to extend a JeopardyGrid and JeopardyCell class, which you will use to create your grid. (8 points)
- Provide the user an input box for supplying an answer, and a button for making a guess. (1 point)
- When the user makes a guess, check if the user-supplied answer is the correct answer. (1 point)
- Award points (based on the "difficulty") to the user if they guess the answer correctly. (1 point)
- Load a new question for the user. (2 point)
- You do not have to provide a win condition.
- Use OOD (Object-Oriented Design) to represent the contestant and a round.
- Provide the user with a timer and penalize them for not guessing correctly in time.
- Only show the contestant one question per difficulty in a given category.
- Provide a win condition once all questions in all categories are exhausted.
- Provide a win condition once all questions in all categories are exhausted.
- Fork this repo and clone it to your machine.
- Enable GitHub Pages for your repo.
- Add your code, per the instructions above.
- Push your completed code to your own repo.
- Submit a pull request to the original repo.
- On the PR, add a comment with a link to your GitHub Page for your project.
- On Canvas, submit a link to your PR.
- Use GitLab for this assessment.
- Before you touch any code, make a plan.
- Create a README.md file in your repo, and use it to record your notes and pseudo-code from Step 1.
- Enable Pages for your repo (by using init-gitlab-page).
- When you run
init-gitlab-page
make note of the URL it gives you on the console. This is the link to your GitLab Page. - On Canvas, submit the link to your GitLab Page.