/Newscorp-Demo

Newscorp Code challenge

Primary LanguageSwift

#CodeChallenge for Newscorp

by Dmitrii Zverev. 15 July 2018

'Game-ifying' some news content.

We need the game to display every question from the json feed, in order (for player equality), until the user completes all questions. NOTE: there should be no repetition (In reality this feed would be updated daily).

  1. Display a questions page which should show:
  • The current total score.
  • The image.
  • The standfirst (see json).
  • The 3 possible answers.
  • A button to read the article.
  • A button to display the next question.
  1. Score is to be accumulative and is defined as:
  • One point for a correct answer.
  • Minus one point for an incorrect answer.
  • No points for skipping the question.
  1. Once an answer is submitted, the next page should show.
  • complete section.

In this challenge, I demonstrated my abilities to use:

  • structs
  • optional
  • Codable
  • class extensions and sub-classes
  • Threads
  • Creating custom UI elements
  • Avoiding Massive View Controllers
  • writing code without single warning
  • animations
  • escaping
  • haptic feedbacks
  • Unit Testing
  • .. and much more