Tim Dietrich

Custom Software Developer

Home Services Portfolio Blog About Contact Newsletter

Swift: Archery Score Playground

One of my son's hobbies is archery, and he's a member of a local archery team. They meet every week, and they occasionally shoot for "pins." Pins are awards that are earned by achieving increasingly difficult scores at various distances.

This past weekend was one such pin shoot. While watching it, I decided I would "geek out" and create a Swift playground to keep track of his scores and progress. As scores for the "ends" are entered, the playground calculates the total score and determines whether or not it is possible to get the score needed to earn the pin.

A screenshot of the playground is below - and sadly, as you can see, he did not earn a pin this time. If you'd like to download the playground file, it's available here.