A branch of MGH Productions: Technology — ideas turned into apps
Digital Workshop · Magic in Progress
DartScore .ai
My idea: point a camera at the dartboard, choose the game and type in the names – then the app scores every dart for you. I am testing the first part now; the camera is the next phase.
Magic in Progress · not launched yet
What I am building
Keeping score in darts takes attention away from the game. I want the app to do the counting: you add the players, pick 501, 301 or Cricket, and throw. The scoreboard is tested first, so the camera later only has to answer one question – which field was hit?
- 01
Phase 1 · the game
Player names, 501/301 with double or straight out, Cricket, busts, averages and checkout suggestions. Built and being tested.
- 02
Phase 2 · the camera
The camera recognises where each dart lands and suggests the score. You confirm or correct with one tap. Not started yet.
- 03
Launch
The app opens for everyone when the game and the camera work well enough.
Tech Talk
Small parts. Clear responsibilities.
DartScore.ai is built in two phases. Phase 1, available now, is the game itself: players, game modes, rules, checkouts and averages, all running in your browser. Phase 2 adds the AI in the name: a camera that recognises where each dart lands. Getting the rules right first means the camera only has to answer one question – which segment was hit – and the same scoreboard does the rest.
Visitor analytics and click tracking are turned off. Optional browser storage now waits for the visitor’s answer: one shared helper keeps language, curtain and similar choices in memory for the visit, and writes them to localStorage only after “Remember my choices”; the offline service worker and Cache Storage start only after “Offline use”. Rejecting removes saved choices and offline files. The answer itself, sign-in sessions and Cloudflare’s short ‘__cf_bm’ security cookie are treated as necessary; that cookie arrives with the first response from the hosting network, before any question can be shown, so it is disclosed openly rather than asked about. The Privacy & cookies page lists every stored item and every outside service (Cloudflare, Lovable, Google Fonts, OpenAI and Google for Ekorn, Spotify) with links to their own privacy policies. The opening curtain follows the same answer everywhere, including the Home Screen icon: without a yes it shows on every new visit. The language button names the language it switches to (“Switch to English” / “Bytt til norsk”), so it is not mistaken for the language already shown. This is a design choice, not a compliance certification. The record crate on the Music page shows only the records the owner has switched on: the choices live in one small table where visitors can read only the records switched on, so hidden records and their names stay private; only the admin role can see and change every choice, and every record stays hidden until switched on. Covers are web-sized copies on the CDN, and the sliding vinyl is a flat layer behind the sleeve, so it never cuts through the sleeve as it turns. Below the crate, a Spotify section links straight to MortyG’s verified artist page; Spotify’s own artist player loads only after the visitor presses play, and the Spotify icon is shown unchanged in Spotify green, as Spotify’s design guidelines ask when linking to Spotify content. A note at the top says the Music page is still under construction and jumps to the listening section, which also links to MortyG’s artist pages on Apple Music, Deezer and iHeartRadio. Those are plain text links, checked against each service before adding, so nothing connects to them until a visitor clicks; Tidal, Amazon Music and YouTube Music are added once their artist links are confirmed. The top bar has one account button that reads its label from the live sign-in session: “Log in” when signed out, “Log out” when signed in. Logging out clears everything cached while signed in, then shows the same page as a visitor; on private pages it goes to the home page instead. Next to it, the owner sees a gold Admin shortcut and invited customers see “My workspace”; visitors see neither. The Admin home is a map with one tile per owner tool, read from a single list so a new tool is added in one place; the tools stay where they work, and each still checks the admin role in the database itself, so the shortcuts change only what is shown, never who can open or change anything.
Security & privacy
No account is needed and nothing is sent anywhere. Player names and the game in progress are saved only in this browser, so a reload does not wipe a match. The camera preview starts only when you press the button, stays on your device, is never recorded or uploaded, and stops when you press stop or leave the page. During the testing period the playable board is shown only when the site owner is signed in with the admin role and switches test mode on; visitors see the project description. That is a display choice, not a lock on anything private – the scoreboard still runs entirely in the browser.
Maintenance
The rules live in one small, separate module that replays the game from the list of darts thrown. That makes undo exact – remove the last dart and replay – and lets the rules be tested on their own. Tests cover 501/301 busts, double out and straight out, the bull as a double, the three-dart average, Cricket closing and scoring, and that every suggested checkout adds up and ends on a double.
Low AI cost
No AI is called today, so a game costs nothing to play beyond normal site hosting. The plan for phase 2 is to recognise darts on the device itself – in the browser, or on a small computer such as the NUC or a Raspberry Pi beside the board – instead of sending a photo to a cloud AI for every throw, which would put a price on every single dart.
Possible next steps — not available yet
- Camera calibration: mark the centre of the board and the 20 at the top, so the picture can be matched to the real board.
- On-device dart detection (phase 2): spot a new dart, read its segment and suggest the score – you confirm or correct it with one tap.
- More games such as Around the Clock and Shanghai, plus legs and sets for longer matches.
Architecture drawing · DartScore.ai
Everything runs in your browser • the camera picture never leaves the device
- 01
Players & game mode
Names, throwing order, 501/301 with double or straight out, or Cricket.
- 02
Score input
Tap the board or the keypad today; in phase 2 the camera proposes each dart.
- 03
Rules engine
Replays every dart: busts, finishes, Cricket marks and points.
- 04
Scoreboard & checkout
Remaining score, average and a suggested finish for the darts left.