Lynda Course - Swift 5 Essential Thinking (Part 8 - FINAL!)
Here we go! The last part - the challenge - of Harrison's course. After this I will review all of the course and focus on what needs practising as several bits have come up that I definitely need to go over. Then I'll look at the next course/plan! Start Time - 13:48 Let's break this down first. 1 is easy. 2 is all good. 3 is harder but I think I remember the syntax. 4 is, again, tricky but I can do it. Similar with 5 to 7 - error stuff which I may need help with! Right enough deliberation let's give it a go - without any help first! Right, so these bits I'm OK with - // 1 enum ActionError: Error { case InsufficientMP, OutOfRange, UnknownError } // 2 // 3 func attackEnemy(mp: Int , distance: Double ) throws -> Bool ? { // 4 guard mp < 10 else { throw ActionError . InsufficientMP } // 5 guard d...