*Xcode Project Entry 2* F1 Quiz - part 4 (FiNAL!)
Back in Dubai! It would be very easy to see the momentum tail off but I'm not going to let that happen! A little while back, I aimed for 3 hours per week or 25 minutes a day. I've definitely maintained that. If I look over the last few weeks for example...
24th - 30th December - 5 hours 14 minutes
17th - 23rd December - 2 hours 58 minutes (approx)
10th - 16th December - NONE!
3rd - 9th December - 1 hour 29 minutes
26th November - 2nd December - 11 hours 39 minutes (approx!)
19th - 25th Nov - 2 hours 49 minutes
12th - 18th Nov - 3 hours 3 minutes
5th - 11th Nov - 1 hour 46 minutes
Ok, so clearly from this, I've been inconsistent! On average, that's around 3 hours per week, but there are several exceptions. The two highest (especially the end of Nov week) are due to working on Xcode projects. The week with none at all was the last week of term and getting back from Dubai to UK including Cath's in Corsham. Overall, not bad though!
Start Time - 15:56
Now I've got all of that out of the way, let's focus on today's entry. Yes the F1 Quiz project is pretty much done and it does work really well! The tweaks I want to make are the following:
*Paused at 15:58 (2 minutes so far!)
*Continued next day at 11:21
Yes, I had to stop there yesterday! So where was I...
Right, I have the project up. Let's change the first two points first.
OK. First two steps done!
24th - 30th December - 5 hours 14 minutes
17th - 23rd December - 2 hours 58 minutes (approx)
10th - 16th December - NONE!
3rd - 9th December - 1 hour 29 minutes
26th November - 2nd December - 11 hours 39 minutes (approx!)
19th - 25th Nov - 2 hours 49 minutes
12th - 18th Nov - 3 hours 3 minutes
5th - 11th Nov - 1 hour 46 minutes
Ok, so clearly from this, I've been inconsistent! On average, that's around 3 hours per week, but there are several exceptions. The two highest (especially the end of Nov week) are due to working on Xcode projects. The week with none at all was the last week of term and getting back from Dubai to UK including Cath's in Corsham. Overall, not bad though!
Start Time - 15:56
Now I've got all of that out of the way, let's focus on today's entry. Yes the F1 Quiz project is pretty much done and it does work really well! The tweaks I want to make are the following:
- Final message - needs to include the score and reference to podium
- Alonso answer needs to be correct!
- Array of positive/negative messages - have as an array to then loop through.
- Experiment with having other classes for question types
*Paused at 15:58 (2 minutes so far!)
*Continued next day at 11:21
Yes, I had to stop there yesterday! So where was I...
Right, I have the project up. Let's change the first two points first.
OK. First two steps done!
func scoreDisplay() {
if score == 10 {
displayInfoLabel.text! = "Top step of the podium! You did it! Can you score 10 out of 10 again?"
}
else if score > 7 && score < 10 {
displayInfoLabel.text! = "\(score) out of 10! Onthe podium - great effort! Can you make it to the top step next time?"
}
else if score >= 4 && score <= 7 {
displayInfoLabel.text! = "\(score) out of 10 - good try! Try to make it onto the podium by scoring 8 or more next time!"
} else {
displayInfoLabel.text! = "Hard luck! See if you can get more than 5 next time!"
}
}
All answers checked - a few typos and Alonso one is now accurate!
*10 mins pause
OK next thing is the array of pos/neg messages...
DONE! So all that is good now. Sorted!
*Update at 14:18
There's no point putting a time on this session - most has been reorganising the facts!
So now I have the main question bank (original), separate Swift files for a) easy, b) medium and c) hard questions and all questions too (mixed).
Now I am going to create another main screen which has a bit of info and the four options for the quiz. I will also need a main menu button that will go from the main game back to that screen. Once I've done that then the app will be DONE!
*Update!
OK, I can't do it! Very frustrating, but there simply is no way - at the moment for me - to get each button to display a different class of question. I've tried but whatever I do it's too complex.
Good news is I have the two screens and all of the classes ready! So I can come back to this app another time. No shame in failing - it's how we learn!
Approx time spent - 3 hours
So the plan is now to go to a course...Angela! Not just any Angela though - Angela's updated course! I will start from the beginning and WHIZZ through anything that is familiar. Any projects that were the same, I will simply skip. However, I will pay attention as she's apparently edited the course to reflect the changes to Xcode 12. That will be the imminent entry!
Comments
Post a Comment