{"id":759,"date":"2026-12-05T23:37:50","date_gmt":"2026-12-05T23:37:50","guid":{"rendered":"https:\/\/www.jeffgapp.com\/wordpress\/?p=759"},"modified":"2026-12-05T23:49:33","modified_gmt":"2026-12-05T23:49:33","slug":"building-a-score-tracker-a-disc-golf-and-washers-app-made-with-claude","status":"publish","type":"post","link":"https:\/\/www.jeffgapp.com\/wordpress\/2026\/12\/05\/building-a-score-tracker-a-disc-golf-and-washers-app-made-with-claude\/","title":{"rendered":"Building A Score Tracker: A Disc Golf and Washers App, Made with Claude"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">As we all can see the age of hyper specific applications is upon us&#8230;powered by LLM&#8217;s. I&#8217;ve been using LLM&#8217;s to do product management work and thought that I should do is use the LLM&#8217;s to help me with a <strong>very<\/strong> specific thing I wanted to solve.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I learned a lot doing this and have taken those lessons and used them in other projects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Every year some friends and I go for a weekend to play Disc Golf.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We call the weekend &#8216;ANW&#8217;. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We play disc golf and a game called &#8216;Washers&#8217; were we throw&#8230;washers into a box. Regardless, the scoring happens the same way: someone keeps a card, we argue about the scores, and afterwards somebody types it all into the website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This fall I decided to build an iPhone app. I&#8217;m not a iOS developer, so I built it in a pair-programming loop with Claude, Anthropic&#8217;s AI model, running in Claude Code. Three evenings later we had <strong>ANW Score Tracker<\/strong>: disc golf and Washers scoring, tournaments, Shots, and one-tap posting to WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s how it came together.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized size-medium\"><img decoding=\"async\" src=\"https:\/\/www.jeffgapp.com\/wordpress\/wp-content\/uploads\/2026\/12\/score-tracker-splash.png\" alt=\"ANW Score Tracker startup screen with the red ANW logo\" style=\"width:300px;height:auto\"\/><figcaption class=\"wp-element-caption\">The startup screen: the ANW logo, then the title fades in.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">The idea<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I wanted one app for the two games that we play:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Disc golf<\/strong>: strokes per hole against par, a live leaderboard, and a full scorecard.<\/li>\n\n\n\n<li><strong>Washers<\/strong>: two sides, points per inning, optional cancellation scoring, first to a target score.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Finished games should stick around as history, and a weekend&#8217;s rounds should roll up into a tournament with a winner (&#x1f3c6;) and a loser (&#x1f969; the Meat).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How working with Claude went<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The workflow was simple: I described what I wanted in plain English, Claude wrote the Swift, built the app, ran it in the iOS Simulator, took screenshots to check its own work, and told me what it changed. I tried things on my phone and came back with &#8220;that&#8217;s not quite right.&#8221; The first request was literally <em>&#8220;I want to create a new app called Score Tracker.&#8221;<\/em> Claude asked a few questions (iOS? which games? keep history?) and then laid out the project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A few things stood out:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>It asked before guessing.<\/strong> When I asked for &#8220;shots on a double bogey,&#8221; it checked whether I meant exactly a double bogey or double bogey <em>or worse<\/em>, and where the row should go on the card.<\/li>\n\n\n\n<li><strong>It verified in the simulator.<\/strong> Layout bugs, like a toggle overlapping the par stepper in the template editor, were found by tapping through the app and looking at screenshots, not just by compiling.<\/li>\n\n\n\n<li><strong>It was careful with my data.<\/strong> It used a separate, empty simulator for testing so it wouldn&#8217;t touch the games I had been entering, and it never posted to the real website from tests.<\/li>\n\n\n\n<li><strong>Small commits.<\/strong> Each feature went in as its own commit, pushed to a private GitHub repo only when I said so.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">The architecture<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The app is SwiftUI on iOS 27 with Swift 6, and SwiftData for storage. The most useful decision was splitting it in two:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ScoreKit<\/strong>, a local Swift package with the data models and all of the scoring rules: par math, Washers cancellation, tournament standings, Dickel Shots, and the HTML for WordPress posts. It has no UI, so it can be tested with <code>swift test<\/code>.<\/li>\n\n\n\n<li><strong>The app<\/strong>: about 24 SwiftUI files (roughly 2,400 lines) for the screens.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">ScoreKit is about 1,000 lines with 38 Swift Testing tests. Every scoring change came with tests, which made later features (tournaments especially) much less scary.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A couple of rules kept the data sane:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Scores are stored raw (strokes per hole, points per inning). Totals, winners and shots are always <em>computed<\/em>, never stored, so they can&#8217;t drift out of sync.<\/li>\n\n\n\n<li>New fields are optional or have defaults, so adding features never broke games already saved on a phone.<\/li>\n\n\n\n<li>Templates are copied into a game when it starts. Editing a course template later doesn&#8217;t rewrite last month&#8217;s round.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized size-medium\"><img decoding=\"async\" src=\"https:\/\/www.jeffgapp.com\/wordpress\/wp-content\/uploads\/2026\/12\/score-tracker-home.png\" alt=\"Home screen with Tournaments, New Game, In Progress, Sounds and History sections\" style=\"width:300px;height:auto\"\/><figcaption class=\"wp-element-caption\">The home screen: tournaments, new games, games in progress, sounds and history.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Scoring a round<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Disc golf scoring is one hole at a time: big plus and minus buttons for each player, the result in words (Birdie, Par, Double Bogey), and a live leaderboard underneath. Par goes down to 1 for those short ace runs.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized size-medium\"><img decoding=\"async\" src=\"https:\/\/www.jeffgapp.com\/wordpress\/wp-content\/uploads\/2026\/12\/score-tracker-scorecard.png\" alt=\"Hole 5 of 9 with strokes for four players and a leaderboard\" style=\"width:300px;height:auto\"\/><figcaption class=\"wp-element-caption\">Hole-by-hole scoring. A double bogey earns a shot on the spot.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Some of the features came straight from how we actually play:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Asterisks.<\/strong> Tap the \u2731 next to a player&#8217;s score to mark a hole and add a note (&#8220;I got a 3 and everyone says I missed the putt&#8230;I disagree&#8221;). It shows on the scorecard and pops up when tapped.<\/li>\n\n\n\n<li><strong>Hole alarms.<\/strong> Set an alarm on a hole and it rings once everyone has finished the hole before it. Handy for &#8220;watch the road crossing.&#8221;<\/li>\n\n\n\n<li><strong>Templates.<\/strong> Save a course&#8217;s pars, alarms and the usual players, and start a new round from it in one tap.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Shots<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">ANW has a house rule: a double bogey or worse earns you a shot. The app tracks them in a red Shots row under each player on the scorecard, and they&#8217;re totalled for the tournament. They don&#8217;t affect the rankings. The rule itself is one line in ScoreKit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\/ Shots a player earns on one hole: 1 for a double bogey or worse, otherwise 0.\npublic static func shots(strokes: Int, par: Int) -&gt; Int {\n    strokes &gt; 0 &amp;&amp; strokes - par &gt;= 2 ? 1 : 0\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized size-medium\"><img decoding=\"async\" src=\"https:\/\/www.jeffgapp.com\/wordpress\/wp-content\/uploads\/2026\/12\/score-tracker-grid.png\" alt=\"Full scorecard grid with a Shots row under each player\" style=\"width:300px;height:auto\"\/><figcaption class=\"wp-element-caption\">The full scorecard. Orange is over par, green is under, and the asterisk marks a hole with a note.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Tournaments<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you start a game, the app asks whether it&#8217;s part of a tournament. The tournament screen adds everything up: total strokes against par across every round, holes played, and shots. Players are matched across rounds by name, ignoring capitalization and stray spaces, so &#8220;sam&#8221; and &#8220;Sam &#8221; are the same golfer.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized size-medium\"><img decoding=\"async\" src=\"https:\/\/www.jeffgapp.com\/wordpress\/wp-content\/uploads\/2026\/12\/score-tracker-tournament.png\" alt=\"Tournament standings for four players with shots and score against par\" style=\"width:300px;height:auto\"\/><figcaption class=\"wp-element-caption\">Tournament standings across two rounds.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Posting to WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This was the feature I wanted most. I&#8217;m the guy that typed in the scores and it was boring to do. Why not automate it?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The app builds a post laid out like our existing scoring pages (holes as rows, players as columns, Dickel Shots after each nine, totals at the turn) and sends it to the site through the WordPress REST API. A few choices made it safe:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It uses a WordPress <strong>Application Password<\/strong>, stored in the iPhone Keychain, not my real login.<\/li>\n\n\n\n<li>Posts are always saved as <strong>drafts<\/strong>, so nothing goes live until someone checks it.<\/li>\n\n\n\n<li>The tests use a fake network layer, so running them can never post to the real site.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Tournament posts put the summary on top, then each round, and award the &#x1f3c6; and &#x1f969; only once the tournament is marked finished.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The finishing touches<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>App icon and startup screen<\/strong> from the ANW logo, in its own red (#9E1C2D).<\/li>\n\n\n\n<li><strong>A Sounds section<\/strong> with exactly one sound so far: &#8220;Defending Cow.&#8221; The reason for that sound is a long story. Anyway, It plays even when the phone is on silent, which is the point.<\/li>\n\n\n\n<li><strong>Keyboard fixes<\/strong> from real use: Return jumps to the next player, autocorrect stays out of the way of names, and there&#8217;s a Done button to get the keyboard off the screen.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What I learned<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Be specific about the rules, vague about the code.<\/strong> Claude was good at SwiftUI; what it needed from me was how we actually score.<\/li>\n\n\n\n<li><strong>Put the logic where it can be tested.<\/strong> Keeping scoring in a separate package meant every new rule came with tests.<\/li>\n\n\n\n<li><strong>Try it on the phone.<\/strong> The best bug reports came from using it on a real course: a message covering a button, the keyboard hiding the player list. While there were only a couple of defects&#8230;one of the cool things that I did was have Claude fix the app while I was on the course.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>As we all can see the age of hyper specific applications is upon us&#8230;powered by LLM&#8217;s. I&#8217;ve been using LLM&#8217;s to do product management work and thought that I should do is use the LLM&#8217;s to help me with a very specific thing I wanted to solve. I learned a lot doing this and have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-759","post","type-post","status-publish","format-standard","hentry","category-woodwing"],"_links":{"self":[{"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/posts\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":6,"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/posts\/759\/revisions"}],"predecessor-version":[{"id":768,"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/posts\/759\/revisions\/768"}],"wp:attachment":[{"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/media?parent=759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/categories?post=759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jeffgapp.com\/wordpress\/wp-json\/wp\/v2\/tags?post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}