teamnzs / ios-trivia-game

iOS Trivia Game
0 stars 0 forks source link

Issue/25 implement finalscoreviewcontroller #46

Closed saviotsui closed 7 years ago

saviotsui commented 7 years ago
screen shot 2016-11-27 at 9 33 07 pm

Objective of this PR Complete FinalScoreViewController functionality

  1. This includes game cleanup
    • update the running score of the user in the user entity
    • remove the user from the user_in_game table
    • remove the game from game_room table
  2. Plumbing the room_id to all the GameViewControllers.
    • We rely on this id to figure out which game to quit, which user's score to update, which game to remove

Changes I needed to make

  1. User model was modified so that we can pull out the data from our Firebase DB. Previously it was set up to intake FB data, but if you wanted to get something else from the user such as the score or rank, it was not possible to do so from within the User entity