- Pull the latest changes from your team's Git repository (clone first, if necessary).
- Complete/Close the current 'Trivia - Sprint 1' sprint in your team’s JIRA project
- Create a Sprint in your team’s JIRA project called 'Trivia - Sprint 2'
- Drag the issues from the backlog into the sprint
- Create an issue in Jira for each of the following sprint tasks.
Create the issues using the specified type - Task, Bug or User Story. If a user story, ensure that the correct user story format is being used.
- Convert the existing trivia questions into a format the application can use.
- Take the trivia questions that were created as part of sprint 1, and put them in a multidimensional array variable. The format can be found in dataReader.js.
- Verify that the correct answer is specified for each question.
- Add the data reader to the project.
- Add the dataReader.js file to the project in the js folder.
- Add a reference to the dataReader.js file in the index.html page.
- Create a global variable which is set to the value returned when opening the trivia records in dataReader, passing the trivia questions array as a parameter.
- Create at least four unit tests for dataReader.
- Before you begin writing unit tests for dataReader, you will need to add references to dataReader.js to the unit test web page.
- Create an array with hard-coded trivia data. Use this array in your unit tests, e.g. comparing to ensure that the correct question is returned from dataReader. This can be done since the data is hard-coded and the correct answer is known, all within the scope of the unit test.
- Some potential unit test ideas: returning a question, returning a valid correct answer (A, B, C or D), returning four answers and returning a question.
- Rename the getRandomQuestion function to loadRandomQuestion. In that function, change the logic to get a random question (utilizing the dataReader). Then within that function, load the question and answers onto the page in the correct areas (e.g. answer A should be in the A tile).
- Add support for telling the user if they answered correctly.
- Update the checkAnswer function to compare the answer that the user clicked on with the current correct answer from the dataReader.
- Remove the code that converted the answer letter to an index (e.g. A = 0).
- Add a “50/50” button.
- When the user clicks the button, remove the text from two of the tiles which contain incorrect answers. One correct and one incorrect answer should remain visible.
There are many ways that this can be done. Feel free to be creative.
- Add a “Phone a friend” button.
- Utilize the site Let Me Google That For You as the user’s “friend”.
http://lmgtfy.com
- When the user clicks on the button, open the Let Me Google That For You site in a new tab. Pass the question as a parameter in the URL when opening the site (e.g. http://lmgtfy.com/?q=what+color+is+the+sky)
- Spaces in the question will need to be replaced with the plus (+) character, and the question mark at the end (if there is one, should be removed). Use JavaScript to accomplish this.
- When the user clicks an answer tile, show an alert message with either “Correct!” or “Incorrect!” based on the logic in the checkAnswer function.
- Use the story point range of 1,2,4,8,16 (to represent Extra Small, Small, Medium, Large, Extra Large)
- Assign the issues as evenly as possible within your team.
- In the backlog, drag and drop all of the issues created into the sprint.
- Start the sprint
- For the Sprint Name specify 'Trivia - Sprint 2'
- For the Start Date, specify today's date
- For the End Date, specify the date of one week from now