In week 9 the team had demonstrated the functionality of the game so far to the rest of the class. It was good to be able to receive feedback and advice on some of the aspects of the game. I feel the team had enough of the game implemented to show the basic functionality:
- Home page: user enters their name
- Location page: user can hover over continents within a world map image, and this displays which continent the user is currently hovering over
- Question page: monument is set as Sydney Opera House. Retrieves the first image from Trove and the text is hard-coded information from Wikipedia. The user can enter their answer in the input text field and the game checks if it matches the term ‘Sydney Opera House’. If incorrect it says ‘try again’. If correct it progresses to the Scores page.
- Scores page: displays ‘Your score: 10’ - this is mostly hard-coded at this point
Some of the feedback the team received, was to expand the game globally, as well as to try retrieving the text through the Wikipedia API. This was a particularly useful suggestion, as we were not sure how to retrieve text from Trove. The issues surrounding retrieving text from Trove were that:
- Many of the results that appear in the search results for articles, books etc are not textual passages themselves, but rather are references to their physical location within a library. It would be impossible to extract text directly from this information.
- Even if we were able to get textual content from the search results, many of them were not completely relevant to the topic and did not provide the kind of information that was needed for each question. For instance, ‘eiffel tower’ did not yield many results containing content that can be accessed online. This search term was then modified to ‘eiffel tower france’ which yielded a first result: “Fears over copycat suicides at Eiffel Tower; France.(News)” - this is obviously not relevant to the topic in the way that is intended.
Before the demonstration, I had worked on getting the pages to link together properly and integrated Trove so that it could retrieve a single image for ‘Sydney Opera House’. The image retrieval is done in the same way as the example website as shown in the week 8 blog post. Issues that arose:
- Images that were being retrieved were not displaying properly. This was solved by just retrieving from nla.gov as the images seem to display fine from this website
- Error appears in the console from accessing an element from a variable that is undefined (in processImages(), troveItem.identifier[0] causes an error):
Uncaught TypeError: Cannot read property '0' of undefined
This was solved by checking if the identifier is undefined first, before accessing any of its elements:
Added a check to fix the ‘Uncaught TypeError’
This week the team also worked on and submitted our progress report. I worked on the Implementation Plan which also served as a breakdown of tasks and responsibilities for the team in the upcoming weeks:
Task
|
Team member
|
Question content:
|
All team members
|
UI/UX:
|
Anuki, Anush
|
Data structures and Database interaction:
|
Felipe, Izzy
|
Trove API:
|
Anuki
|
Wikipedia API:
|
Anush
|
Dynamically change question:
|
Izzy, Felipe
|
User Testing:
|
Sho
|