Thrown Errors

There's many ways to handle errors in Swift. For some errors, using throws is a great way to handle errors without crashing the system. Download the exercise file. You'll find a project with an embedded playground.  While there's a lot better ways to do this, I'll use an example of a function coffee(name:) that finds …

The SlippyFlippy Challenge: Make a Better Obstacle in Sprite Kit

Build a Better Obstacle In the SlippyFlippy challenge we have a small obstacle. In Flappy Bird there are two obstacles which the bird has to pass between.  Let’s change our current obstacle into a pass-through obstacle like Flappy Bird.   Make a Random Obstacle Our current obstacle is a bit boring. It always shows up …