<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rahul Devaskar</title>
    <description>The latest articles on DEV Community by Rahul Devaskar (@apostopher).</description>
    <link>https://dev.to/apostopher</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F114037%2F0df46ebb-cf01-4472-b110-29973fb39647.jpeg</url>
      <title>DEV Community: Rahul Devaskar</title>
      <link>https://dev.to/apostopher</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/apostopher"/>
    <language>en</language>
    <item>
      <title>FIFA Top Thirds group logic</title>
      <dc:creator>Rahul Devaskar</dc:creator>
      <pubDate>Sun, 28 Jun 2026 06:30:19 +0000</pubDate>
      <link>https://dev.to/apostopher/-6nk</link>
      <guid>https://dev.to/apostopher/-6nk</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/apostopher/eight-kids-eight-chairs-one-rule-explaining-fifas-best-thirds-draw-to-my-8-year-old-3am0" class="crayons-story__hidden-navigation-link"&gt;Eight kids, eight chairs, one rule: explaining FIFA's best-thirds draw to my 8-year-old&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/apostopher" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F114037%2F0df46ebb-cf01-4472-b110-29973fb39647.jpeg" alt="apostopher profile" class="crayons-avatar__image" width="460" height="460"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/apostopher" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Rahul Devaskar
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Rahul Devaskar
                
              
              &lt;div id="story-author-preview-content-4007431" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/apostopher" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F114037%2F0df46ebb-cf01-4472-b110-29973fb39647.jpeg" class="crayons-avatar__image" alt="" width="460" height="460"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Rahul Devaskar&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/apostopher/eight-kids-eight-chairs-one-rule-explaining-fifas-best-thirds-draw-to-my-8-year-old-3am0" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jun 27&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/apostopher/eight-kids-eight-chairs-one-rule-explaining-fifas-best-thirds-draw-to-my-8-year-old-3am0" id="article-link-4007431"&gt;
          Eight kids, eight chairs, one rule: explaining FIFA's best-thirds draw to my 8-year-old
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/soccer"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;soccer&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/math"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;math&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/worldcup"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;worldcup&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
            &lt;a href="https://dev.to/apostopher/eight-kids-eight-chairs-one-rule-explaining-fifas-best-thirds-draw-to-my-8-year-old-3am0#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            14 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>algorithms</category>
      <category>beginners</category>
      <category>computerscience</category>
      <category>learning</category>
    </item>
    <item>
      <title>Eight kids, eight chairs, one rule: explaining FIFA's best-thirds draw to my 8-year-old</title>
      <dc:creator>Rahul Devaskar</dc:creator>
      <pubDate>Sat, 27 Jun 2026 18:20:26 +0000</pubDate>
      <link>https://dev.to/apostopher/eight-kids-eight-chairs-one-rule-explaining-fifas-best-thirds-draw-to-my-8-year-old-3am0</link>
      <guid>https://dev.to/apostopher/eight-kids-eight-chairs-one-rule-explaining-fifas-best-thirds-draw-to-my-8-year-old-3am0</guid>
      <description>&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;My son was on the sofa with his iPad, poking at the &lt;a href="https://quizzy.earth/p/0Dpwk5TjHe/fifa-world-cup-2026-predict-the-bracket-live" rel="noopener noreferrer"&gt;live "Predict the Bracket" game&lt;/a&gt; — the whole 2026 World Cup knockout tree on one screen, every slot already filled with the crowd's favourite for that match. Tap a match, see who most people think goes through, watch the picks flow all the way up to a predicted champion.&lt;/p&gt;

&lt;p&gt;He frowned at it. "Daddy, how do they know which team plays which team? The teams aren't even decided yet."&lt;/p&gt;

&lt;p&gt;He'd caught something real. The little cards sitting in those slots were only predictions — the crowd's best hunch — but the &lt;strong&gt;shape&lt;/strong&gt; underneath them, who-plays-who and where, was already locked in. Months before a single match kicks off.&lt;/p&gt;

&lt;p&gt;Fair question. The 2026 World Cup has 48 teams in 12 groups (A through L). The top two of every group go through — that's 24 teams. Then, to round it up to a nice bracket of 32, they also take the &lt;strong&gt;8 best third-placed teams&lt;/strong&gt;. Twelve groups, but only eight of their third-place teams get a golden ticket.&lt;/p&gt;

&lt;p&gt;"So you don't know which eight until the very end," he said. "But the bracket's already sitting right there on the screen."&lt;/p&gt;

&lt;p&gt;"Right."&lt;/p&gt;

&lt;p&gt;"That's cheating."&lt;/p&gt;

&lt;p&gt;It isn't cheating. It's one of the prettiest little bits of planning in all of sport, and by the end of the afternoon he understood it better than most adults do. We did it with the dining chairs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup, first
&lt;/h2&gt;

&lt;p&gt;Before the chairs, my son needed to know where these kids even come from. So we did the boring-but-important part first.&lt;/p&gt;

&lt;p&gt;A football group is a handful of teams who all play each other. When it's done, the best go forward, the worst go home, and — this is the bit that matters — there's a kid right on the line: the &lt;strong&gt;best of the rest&lt;/strong&gt;, neither safely through nor clearly out. That borderline kid is the star of this whole story. Call them a &lt;strong&gt;wandering kid&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;To learn the trick, let's make the groups nice and small: &lt;strong&gt;two groups, A and B, three kids in each — six kids total.&lt;/strong&gt; In each group the &lt;strong&gt;top kid goes straight through&lt;/strong&gt; to the next round, the &lt;strong&gt;bottom kid is out&lt;/strong&gt;, and the kid in the &lt;strong&gt;middle is our wandering kid&lt;/strong&gt;. So two groups give us &lt;strong&gt;two winners through, two kids out, and two wandering kids&lt;/strong&gt; — second place in Group A, second place in Group B.&lt;/p&gt;

&lt;p&gt;(In the real World Cup the groups are bigger — four teams, with the &lt;strong&gt;top two&lt;/strong&gt; safely through — so it's the &lt;strong&gt;third&lt;/strong&gt;-place kids who do the wandering. Exact same puzzle, just more of everything. We'll scale up the moment the rule clicks.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Two chairs
&lt;/h2&gt;

&lt;p&gt;I lined up two chairs and labelled them with sticky notes: &lt;strong&gt;Chair A&lt;/strong&gt; and &lt;strong&gt;Chair B&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;"Here's the next round. The &lt;strong&gt;winner of Group A&lt;/strong&gt; is waiting in Chair A's match, the &lt;strong&gt;winner of Group B&lt;/strong&gt; in Chair B's. Our two wandering kids each grab a chair and become someone's opponent. Four kids in the round, two matches, two chairs — and it fits perfectly: every kid is either a waiting winner or a wandering kid, nothing left over."&lt;/p&gt;

&lt;p&gt;That clean fit is the whole reason we kept the groups small. (Make them bigger and you also get runners-up, who pair off in their &lt;em&gt;own&lt;/em&gt; matches — more bodies, but they never sit in a wandering kid's chair, so they don't change this puzzle one bit.)&lt;/p&gt;

&lt;p&gt;Then the only rule:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;You can't sit in the chair with your own group's name on it.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Why? Because a wandering kid and their own group's winner already played each other in the group stage. Making them replay immediately would be unfair. So the kid from Group A is banned from Chair A.&lt;/p&gt;

&lt;p&gt;He worked it out instantly. Kid A can't sit in A, so kid A goes to B. Kid B goes to A. Done.&lt;/p&gt;

&lt;p&gt;"There's only one way."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4mlxhhelzmdfyenf2ixs.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4mlxhhelzmdfyenf2ixs.webp" alt="Cartoon illustration of two wooden chairs labelled A and B, each with a boy in an A or B shirt taking a seat." width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Two kids, two chairs — and exactly one fair way to seat them.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;"Yep. Easy. Now watch it get sneaky."&lt;/p&gt;

&lt;h2&gt;
  
  
  The trap: a kid who isn't even from these groups
&lt;/h2&gt;

&lt;p&gt;I kept the two chairs, &lt;strong&gt;A&lt;/strong&gt; and &lt;strong&gt;B&lt;/strong&gt;. But this time the two wandering kids were &lt;strong&gt;from team A&lt;/strong&gt; and &lt;strong&gt;from team C&lt;/strong&gt; (yes, there's a Group C in the mix now).&lt;/p&gt;

&lt;p&gt;Notice: there's no Chair C. The kid from C has no banned chair — they can sit anywhere. I call them a &lt;em&gt;free kid&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;My son, being eight and therefore greedy, grabbed the free kid first and plonked them in Chair B.&lt;/p&gt;

&lt;p&gt;"Done!"&lt;/p&gt;

&lt;p&gt;"Is it though?"&lt;/p&gt;

&lt;p&gt;Now the only kid left is from team A. The only chair left is &lt;strong&gt;Chair A&lt;/strong&gt;. And kid A is &lt;em&gt;banned from Chair A&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;He stared at it. "...he's got nowhere to sit."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozu15tbtf54ii7336exu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fozu15tbtf54ii7336exu.webp" alt="Cartoon illustration: a puzzled boy from Group A can't take the chair marked with a crossed-out A, while another boy has already taken the only other chair, B." width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Seat the kids in the wrong order and someone can end up with nowhere to sit.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;"You stranded him. The free kid &lt;em&gt;could&lt;/em&gt; sit anywhere, so the free kid should have taken the chair nobody else could use — Chair A — and left Chair B for kid A."&lt;/p&gt;

&lt;p&gt;This is the whole puzzle in miniature. There is always a way to seat everyone, but a careless grab can paint you into a corner. The order you make decisions matters. You have to think about the kid who has the &lt;em&gt;fewest&lt;/em&gt; choices, not the one in front of you.&lt;/p&gt;

&lt;p&gt;He re-seated them. Free kid in A, kid A in B. Everyone happy. He looked very pleased with himself.&lt;/p&gt;

&lt;p&gt;"Okay," I said. "Now let's make it bigger — one step at a time."&lt;/p&gt;

&lt;h2&gt;
  
  
  Scaling up: three groups
&lt;/h2&gt;

&lt;p&gt;The two-group game taught the rule. But the real tournament has a twist our tiny version skipped: it has to &lt;strong&gt;pick&lt;/strong&gt; which wandering kids get a chair at all. So let's add exactly that — and nothing else yet.&lt;/p&gt;

&lt;p&gt;Bump it up to &lt;strong&gt;three groups, four kids each — twelve kids&lt;/strong&gt;. And now we'll do it the grown-up way: the &lt;strong&gt;top two from each group go straight through&lt;/strong&gt;, just like the real World Cup. That's &lt;strong&gt;six&lt;/strong&gt; safe qualifiers. The &lt;strong&gt;third-place kid from each group&lt;/strong&gt; is left in limbo — &lt;strong&gt;three wandering kids&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;But a knockout bracket likes tidy numbers: 2, 4, 8, 16. Six safe kids aren't a tidy number, and the next one up is &lt;strong&gt;eight&lt;/strong&gt;. Six plus &lt;strong&gt;two&lt;/strong&gt; makes eight — so there's only room for &lt;strong&gt;two&lt;/strong&gt; wandering kids, and we've got three. Someone misses out.&lt;/p&gt;

&lt;p&gt;That's the brand-new question, the one the two-group game never had to ask: &lt;strong&gt;which two of the three wandering kids get in?&lt;/strong&gt; The two with the best records. And there are only three ways that can shake out — leave out the kid from A, or from B, or from C:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3 wandering kids, choose 2  →  3 possible line-ups
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pick the best two and it all lands clean: &lt;strong&gt;six safe + two chosen = eight kids, four matches.&lt;/strong&gt; Two of the group winners get a wandering kid dropped in beside them (same rule — never your own group); the other four pair off among themselves.&lt;/p&gt;

&lt;p&gt;Three ways. Hold onto that number — it's about to get a lot bigger.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finally: the FIFA level
&lt;/h2&gt;

&lt;p&gt;Now the real draw. &lt;strong&gt;Twelve groups, four kids each — forty-eight teams.&lt;/strong&gt; Top two from every group march straight through: &lt;strong&gt;twenty-four&lt;/strong&gt; safe qualifiers. The next tidy bracket size above twenty-four is &lt;strong&gt;thirty-two&lt;/strong&gt; — so we need &lt;strong&gt;eight&lt;/strong&gt; more kids, chosen from the &lt;strong&gt;twelve&lt;/strong&gt; third-place teams. (Exact same move as the three-group game: 24 + 8 = 32, just like 6 + 2 = 8.)&lt;/p&gt;

&lt;p&gt;In the real bracket, exactly &lt;strong&gt;eight&lt;/strong&gt; of the twelve group winners are the ones waiting for a wandering third-place team: the winners of groups &lt;strong&gt;A, B, D, E, G, I, K, and L&lt;/strong&gt;. The other four — &lt;strong&gt;C, F, H, J&lt;/strong&gt; — get a runner-up instead.&lt;/p&gt;

&lt;p&gt;My son pounced on that straight away: &lt;em&gt;"Why are some groups treated differently?"&lt;/em&gt; Two reasons, and they're both fair.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It's a reward — and there aren't enough to go round.&lt;/strong&gt; Winning your group is the prize, and part of the prize is an easier-looking opponent. A third-place team is the weakest kind of team that qualifies, so the bracket feeds those gentler match-ups to the group winners — a little thank-you for finishing first. (That's exactly why a wandering kid &lt;em&gt;always&lt;/em&gt; plays a group winner, and never a runner-up.) But there are only &lt;strong&gt;eight&lt;/strong&gt; wandering kids and &lt;strong&gt;twelve&lt;/strong&gt; winners, so four winners are always going to miss the reward and draw a runner-up — a tougher opponent — instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which four miss out? Whatever keeps the bracket balanced.&lt;/strong&gt; FIFA sprinkles the eight wandering kids evenly across the bracket on purpose, so they don't all bunch into one corner and turn one route to the final into an easy stroll. Once those eight seats are pinned down for fairness, C, F, H and J are simply the winners left over — the ones whose spot in the tree happens to line them up against a runner-up. Nothing personal; just where the chairs landed.&lt;/p&gt;

&lt;h2&gt;
  
  
  "But that's not fair!"
&lt;/h2&gt;

&lt;p&gt;He was instantly outraged on behalf of C, F, H and J. &lt;em&gt;"Why should four winners get a tougher opponent? They won their group too!"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Good. Be cross about it. Here's why it's fairer than it looks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Someone has to.&lt;/strong&gt; Eight wandering kids, twelve winners — &lt;em&gt;some&lt;/em&gt; four winners end up with a runner-up no matter how you arrange the bracket. It isn't a punishment aimed at anyone; it's just what's left over once the easy tickets run out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It's decided with the lights off.&lt;/strong&gt; When FIFA fixes which winners get a runner-up, the groups are still empty — nobody knows whether Group C will be won by a giant or by the tournament's surprise package. No real team is being picked on, because &lt;em&gt;no real teams exist yet&lt;/em&gt;. By the time you find out who actually won Group C, the rule was already set in stone, blind. That's the fairest kind of unfair: agreed in advance, before anyone knows whom it lands on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And winning still buys the big prize.&lt;/strong&gt; The real reward for topping your group was never the third-placed team — it's that a group winner &lt;em&gt;never&lt;/em&gt; has to play another group winner in this round. Even the four "unlucky" winners only face a &lt;strong&gt;runner-up&lt;/strong&gt;: a team that finished &lt;em&gt;second&lt;/em&gt;, below them. They're still the favourite — they just got the second-best easy draw instead of the very best one.&lt;/p&gt;

&lt;p&gt;And honestly, "tougher on paper" isn't always tougher in real life. Think of Minecraft. A &lt;strong&gt;zombie&lt;/strong&gt; &lt;em&gt;sounds&lt;/em&gt; like a proper monster — but it's slow, it groans, and you watch it lumber toward you from a mile off. Easy. A &lt;strong&gt;creeper&lt;/strong&gt;? Just a quiet green blob, minding its own business… right up until it blows your whole base sky-high. A runner-up can be the zombie: ranked higher, totally beatable. A third-placed team can be the creeper: looks harmless on the bracket, secretly ends your tournament.&lt;/p&gt;

&lt;p&gt;My son chewed on that. &lt;em&gt;"So it's only a little bit unfair."&lt;/em&gt; Exactly. A knockout bracket can never be perfectly equal — somebody's road to the final is always a touch bumpier than someone else's. The whole job is to keep that bump small, spread it around, and lock it in &lt;strong&gt;before&lt;/strong&gt; anyone can argue about who it lands on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Back to the chairs
&lt;/h2&gt;

&lt;p&gt;Anyway — back to the puzzle. &lt;strong&gt;Eight chairs&lt;/strong&gt;, labelled A, B, D, E, G, I, K, L. And &lt;strong&gt;eight kids&lt;/strong&gt; — the eight best third-place teams. But here's the catch we knew was coming: &lt;em&gt;you don't know which eight groups they'll come from.&lt;/em&gt; Maybe C, F, G, H, I, J, K, L. Maybe A, B, C, D, E, F, G, H. Any eight of the twelve.&lt;/p&gt;

&lt;p&gt;Same single rule as the very first chairs game: &lt;strong&gt;no kid sits in the chair with their own group's letter.&lt;/strong&gt; A third from Group K can never be sent to Chair K.&lt;/p&gt;

&lt;p&gt;"That's just the chairs game but bigger," he said.&lt;/p&gt;

&lt;p&gt;"Exactly. So how many different &lt;em&gt;groups of eight&lt;/em&gt; could show up?"&lt;/p&gt;

&lt;h2&gt;
  
  
  Why 495
&lt;/h2&gt;

&lt;p&gt;Back in the three-group game, "choose two of three" gave us three line-ups. The real draw asks the very same question, just bigger: &lt;strong&gt;choose eight of twelve.&lt;/strong&gt; Still nothing but counting.&lt;/p&gt;

&lt;p&gt;How many ways can you &lt;em&gt;choose&lt;/em&gt; eight things out of twelve?&lt;/p&gt;

&lt;p&gt;I explained "choosing" the way it clicks for a kid: choosing 8 to &lt;em&gt;keep&lt;/em&gt; is exactly the same as choosing &lt;strong&gt;4 to leave out&lt;/strong&gt;. And picking which 4 groups &lt;em&gt;miss out&lt;/em&gt; is easier to picture. It comes out to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;12 × 11 × 10 × 9
─────────────────  =  495
 4 × 3 × 2 × 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Mathematicians write this "12 choose 8" — but "how many ways to pick the 4 unlucky groups" is the same number, 495, and far easier to feel.)&lt;/p&gt;

&lt;p&gt;He looked at the little sum, then up at me. "I don't get it."&lt;/p&gt;

&lt;p&gt;And that's completely fine — I didn't either, at his age. "This one's got a big fancy name," I told him. "&lt;em&gt;Permutations and combinations.&lt;/em&gt; I found it hard at school too, honestly. It doesn't really click until Year 10 or 11 — that's years and years away. You don't need it today."&lt;/p&gt;

&lt;p&gt;"So how do I know it's right?"&lt;/p&gt;

&lt;p&gt;"Take my word for it: the maths checks out. 495, exactly. And the formula isn't even the interesting bit — what FIFA &lt;em&gt;does&lt;/em&gt; with that 495 is."&lt;/p&gt;

&lt;p&gt;That was about the limit of his patience. He slid off the chair, said "okay, Daddy," and wandered off to build a Lego stadium on the rug — happy, I think, that the chart wasn't cheating after all.&lt;/p&gt;

&lt;p&gt;Which is the perfect moment: the eight-year-old leaves, and the grown-ups lean in. Because what FIFA &lt;em&gt;does&lt;/em&gt; with that 495 is the real magic — and it's exactly the part he'd have found boring. So, just us from here.&lt;/p&gt;

&lt;p&gt;There are &lt;strong&gt;495 different possible lineups&lt;/strong&gt; of which groups' thirds qualify. Not "495 matches" — 495 different &lt;em&gt;situations&lt;/em&gt; the tournament might find itself in. And for every single one of those, someone has to seat the eight kids in the eight chairs — by the rule, before the tournament even starts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bit nobody expects: there are thousands of correct answers
&lt;/h2&gt;

&lt;p&gt;Here's where I thought the puzzle would be "find the one valid seating." It is not.&lt;/p&gt;

&lt;p&gt;Take any one of those 495 lineups and count how many &lt;em&gt;legal&lt;/em&gt; seatings exist — every way to put the eight kids in the eight chairs with nobody in their own-letter chair. I expected a handful. I wrote a tiny program to count them.&lt;/p&gt;

&lt;p&gt;The answer, depending on the lineup, is somewhere between &lt;strong&gt;14,833 and 24,024&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Not 14. &lt;em&gt;Fourteen thousand.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The "don't sit in your own chair" rule sounds strict, but with eight chairs it barely narrows things down at all. Every single one of those 495 lineups has &lt;em&gt;tens of thousands&lt;/em&gt; of perfectly fair seatings.&lt;/p&gt;

&lt;p&gt;Which raises the real problem — and it's not the one I expected:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The hard part isn't &lt;em&gt;finding&lt;/em&gt; a fair seating. It's getting the whole planet to agree on the &lt;strong&gt;same&lt;/strong&gt; fair seating, in advance, with no arguments.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Think about everything that's already printed before a ball is kicked: TV schedules, which city hosts which match, ticket stubs, the path each team would take to the final. You cannot have a referee deciding on the night which of 14,000 fair brackets to use. Imagine the conspiracy theories.&lt;/p&gt;

&lt;p&gt;So FIFA does the only sane thing. For each of the 495 possible lineups, they pick &lt;strong&gt;one&lt;/strong&gt; seating ahead of time, write it down, and publish it. That document is real, and it has a wonderfully boring name.&lt;/p&gt;

&lt;h2&gt;
  
  
  Annexe C: the answer key
&lt;/h2&gt;

&lt;p&gt;It's called &lt;strong&gt;Annexe C&lt;/strong&gt;, and it's in the official tournament regulations. It is, quite literally, a table with &lt;strong&gt;495 rows&lt;/strong&gt; — one for every possible lineup — and you just look yours up.&lt;/p&gt;

&lt;p&gt;I pulled the actual PDF and decoded it for the predictor I built (more on that below). The columns are the eight waiting winners:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Option | 1A | 1B | 1D | 1E | 1G | 1I | 1K | 1L
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;1A&lt;/code&gt; means "the match where the winner of Group A is waiting." Each row tells you which third-place team gets sent there. Here's the real Option 1 — the lineup where the thirds happen to come from groups E, F, G, H, I, J, K and L:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Winner waiting&lt;/th&gt;
&lt;th&gt;1A&lt;/th&gt;
&lt;th&gt;1B&lt;/th&gt;
&lt;th&gt;1D&lt;/th&gt;
&lt;th&gt;1E&lt;/th&gt;
&lt;th&gt;1G&lt;/th&gt;
&lt;th&gt;1I&lt;/th&gt;
&lt;th&gt;1K&lt;/th&gt;
&lt;th&gt;1L&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Third sent there&lt;/td&gt;
&lt;td&gt;3E&lt;/td&gt;
&lt;td&gt;3J&lt;/td&gt;
&lt;td&gt;3I&lt;/td&gt;
&lt;td&gt;3F&lt;/td&gt;
&lt;td&gt;3H&lt;/td&gt;
&lt;td&gt;3G&lt;/td&gt;
&lt;td&gt;3L&lt;/td&gt;
&lt;td&gt;3K&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Read it like a kid reads it: the winner of Group A will play the third-place team from &lt;strong&gt;Group E&lt;/strong&gt;. Winner of B plays third of &lt;strong&gt;J&lt;/strong&gt;. And so on. Check the rule — no column ever sends a team into its own letter. &lt;code&gt;1A&lt;/code&gt; never gets &lt;code&gt;3A&lt;/code&gt;; &lt;code&gt;1G&lt;/code&gt; gets &lt;code&gt;3H&lt;/code&gt;, not &lt;code&gt;3G&lt;/code&gt;. Every row of all 495 obeys it. (I checked all of them by machine. Zero violations. It's a beautiful piece of work.)&lt;/p&gt;

&lt;p&gt;That's the entire trick my son thought was cheating:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The bracket shape is fixed forever. Eight chairs, in known places.&lt;/li&gt;
&lt;li&gt;Only the &lt;em&gt;names&lt;/em&gt; are unknown.&lt;/li&gt;
&lt;li&gt;There are 495 possible name-situations.&lt;/li&gt;
&lt;li&gt;Each one has thousands of fair answers, so FIFA pre-commits to exactly one and publishes the answer key.&lt;/li&gt;
&lt;li&gt;On the night the groups finish, you don't &lt;em&gt;compute&lt;/em&gt; anything. You read one row out of a book everyone already agreed on.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where I came in: the developer footnote
&lt;/h2&gt;

&lt;p&gt;I didn't go down this rabbit hole for fun. I build &lt;a href="https://quizzy.earth" rel="noopener noreferrer"&gt;Quizzy&lt;/a&gt;, and one of its toys lets you predict the whole World Cup bracket before it happens. To grade your predictions, my code has to do exactly what FIFA does: take your eight predicted third-place teams and seat them in the eight chairs, correctly.&lt;/p&gt;

&lt;p&gt;The lazy instinct is "write an algorithm that finds a valid seating." But Annexe C taught me the lesson the chairs taught my son: there are thousands of valid seatings, and my answer &lt;strong&gt;has to match FIFA's exact one&lt;/strong&gt;, or a user's bracket would diverge from reality. So I don't compute it. I ship the real 495-row table and look it up — the same answer key, byte for byte.&lt;/p&gt;

&lt;p&gt;There's one genuinely tricky wrinkle, and it's the same trap as the &lt;em&gt;free kid&lt;/em&gt;. While someone is still filling in their bracket, they might have picked only three or four thirds, not all eight. The lookup table only knows about complete sets of eight. So for a half-finished bracket I can't use the book at all — I fall back to live, careful seating (the computer-science name is &lt;em&gt;bipartite matching&lt;/em&gt;, but really it's just "seat the kid with the fewest choices first, and back up if you get stuck"). The moment all eight are chosen, I switch back to FIFA's official answer key.&lt;/p&gt;

&lt;p&gt;Two different tools for two different moments. The chairs game predicted both.&lt;/p&gt;

&lt;h2&gt;
  
  
  The end of the afternoon
&lt;/h2&gt;

&lt;p&gt;My son missed all of this — the 14,000 fair brackets, the answer key, every bit of it. He'd taken the one answer he came for (&lt;em&gt;the chart isn't cheating&lt;/em&gt;) and gone back to the Lego.&lt;/p&gt;

&lt;p&gt;And that's the right instinct, really. The stuff he tapped out of — the formula, the 495, the table — is just the packaging. The lovely thing is the idea inside it: that you can take something genuinely unknowable — &lt;em&gt;which&lt;/em&gt; eight of the twelve teams will scrape through in third, out of all the ways a 48-team tournament could possibly unfold — and tame it &lt;strong&gt;completely&lt;/strong&gt;, in advance, with nothing but a printed list and one stubborn rule. No team ever plays its own group. Everything else falls out of that single line.&lt;/p&gt;

&lt;p&gt;Then he reappeared at my elbow, half-built Lego stadium in hand, with one more question — and of course it was the only one that actually matters.&lt;/p&gt;

&lt;p&gt;"Daddy… so who's going to &lt;em&gt;win&lt;/em&gt;?"&lt;/p&gt;

&lt;p&gt;That's the beautiful catch. Annexe C has 495 rows and a fixed, fair answer for every possible way the groups can fall; months ahead of time, it can tell you exactly who plays whom. It cannot tell you the one thing my son — and the rest of the planet — actually want to know. That part, thank goodness, you still have to play.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;If you want to test your own bracket against the real Annexe C — half-finished or complete — that's exactly what the &lt;a href="https://quizzy.earth" rel="noopener noreferrer"&gt;Quizzy World Cup predictor&lt;/a&gt; does. The dining chairs are optional.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>soccer</category>
      <category>math</category>
      <category>worldcup</category>
    </item>
    <item>
      <title>Make any quiz with AI in 30 seconds — and the three attempts it took to ship it</title>
      <dc:creator>Rahul Devaskar</dc:creator>
      <pubDate>Wed, 20 May 2026 12:32:24 +0000</pubDate>
      <link>https://dev.to/apostopher/make-any-quiz-with-ai-in-30-seconds-and-the-three-attempts-it-took-to-ship-it-5c2f</link>
      <guid>https://dev.to/apostopher/make-any-quiz-with-ai-in-30-seconds-and-the-three-attempts-it-took-to-ship-it-5c2f</guid>
      <description>&lt;h2&gt;
  
  
  The sleepover
&lt;/h2&gt;

&lt;p&gt;It was a Saturday afternoon. My son had friends coming over for a sleepover that night, and he wanted to host a quiz. I had said I'd help him build one. I had also told my partner I'd finish something else by 5pm.&lt;/p&gt;

&lt;p&gt;The two promises were not compatible. (A typical excuse, I know.)&lt;/p&gt;

&lt;p&gt;I sat down at the laptop and thought: &lt;em&gt;just ask the AI&lt;/em&gt;. I opened ChatGPT and typed:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Create a 10 question quiz for 8 year old kids with a Minecraft theme. Only expert Minecraft players should get 100%. Make it tough.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Twenty seconds later I had a quiz. My son was reading the questions over my shoulder, suspicious.&lt;/p&gt;

&lt;p&gt;"But but but but daddy — how will the AI know what &lt;em&gt;I&lt;/em&gt; want?"&lt;/p&gt;

&lt;p&gt;He was eight, and he was already asking the question every product manager eventually asks: &lt;em&gt;who is in charge of the requirements here?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I showed him the prompt. I changed "Minecraft" to "Pokemon" and re-ran it. He watched a new quiz appear. He didn't say anything, but he tilted his head in the way he does when he's reconsidering whether something is magic.&lt;/p&gt;

&lt;p&gt;That was the moment I thought: this should be a feature in &lt;a href="https://quizzy.earth" rel="noopener noreferrer"&gt;Quizzy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost wall
&lt;/h2&gt;

&lt;p&gt;The naive version is two afternoons of work. Slap a form on a page, send the user's input to an LLM, render the result.&lt;/p&gt;

&lt;p&gt;The problem is the bill.&lt;/p&gt;

&lt;p&gt;If I put my OpenAI key behind every user, &lt;em&gt;I&lt;/em&gt; am paying for every quiz on Quizzy.earth. The economics of a free product where every action calls a paid API are bad in a predictable way: the more successful you are, the more it costs you. There's no version of "this took off" that isn't also "I am broke."&lt;/p&gt;

&lt;p&gt;Quizzy doesn't charge for this. I don't want it to. So the question wasn't &lt;em&gt;how do I add AI?&lt;/em&gt; — it was &lt;em&gt;how do I add AI in a way where the user's AI does the work?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That turned out to be the hard part. I tried three things.&lt;/p&gt;

&lt;h2&gt;
  
  
  Attempt 1: The BYO-AI form
&lt;/h2&gt;

&lt;p&gt;The first idea was the obvious one. Build a small form: &lt;strong&gt;topic&lt;/strong&gt;, &lt;strong&gt;difficulty&lt;/strong&gt;, &lt;strong&gt;language&lt;/strong&gt;. Press a button. The app composes a &lt;em&gt;prompt&lt;/em&gt; you can copy.&lt;/p&gt;

&lt;p&gt;You paste that prompt into whichever AI you already use. ChatGPT, Claude, Gemini, whatever. The AI spits out JSON. You paste the JSON back into Quizzy. The app parses it into a quiz.&lt;/p&gt;

&lt;p&gt;In theory: elegant. The user pays for their own tokens. I pay for nothing. Everyone wins.&lt;/p&gt;

&lt;p&gt;In practice: I was the only person on Earth who could use it.&lt;/p&gt;

&lt;p&gt;The first problem was that most people don't know what JSON is. I had built a flow that required users to understand a serialisation format, and most of them weren't going to. I figured I could explain that part.&lt;/p&gt;

&lt;p&gt;The second problem was the one I didn't see coming, and my son was the one who found it.&lt;/p&gt;

&lt;p&gt;I handed him the laptop to try it. He typed his topic into Quizzy, copied the generated prompt, pasted it into ChatGPT — and the moment the AI started typing, he selected the half-written response and pasted it back into Quizzy. He didn't wait for the stream to finish. Why would he? On every other app he uses, when text appears, it's done. He pasted half a JSON object, hit &lt;em&gt;create quiz&lt;/em&gt;, and got an error.&lt;/p&gt;

&lt;p&gt;He looked up at me. &lt;em&gt;What did I do wrong?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;He hadn't done anything wrong. The product had. If an eight-year-old can't build a quiz with this thing in under a minute, the product has failed — that was the rule I'd written down for Quizzy on day one, and I'd just watched it break in front of me. &lt;em&gt;Even a kid should be able to build a quiz without friction.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I had built a feature for developers and shipped it to families.&lt;/p&gt;

&lt;h2&gt;
  
  
  Attempt 2: The magical disappear
&lt;/h2&gt;

&lt;p&gt;The next idea was genuinely fun to think about.&lt;/p&gt;

&lt;p&gt;What if the AI itself sent the quiz back to me?&lt;/p&gt;

&lt;p&gt;The flow in my head:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The user gets a prompt with a unique ID baked into it.&lt;/li&gt;
&lt;li&gt;They paste it into their AI.&lt;/li&gt;
&lt;li&gt;The AI generates the quiz and &lt;code&gt;POST&lt;/code&gt;s the JSON to &lt;code&gt;/api/generate-quiz&lt;/code&gt; along with that ID.&lt;/li&gt;
&lt;li&gt;My backend stores it in Redis under that ID.&lt;/li&gt;
&lt;li&gt;The frontend has been polling (or sitting on a websocket) the whole time. The moment the ID lights up, the quiz appears.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The user does nothing. They paste a prompt, they watch their AI think for a few seconds, they look back at Quizzy and the quiz is &lt;em&gt;just there&lt;/em&gt;. No copy. No paste. No JSON.&lt;/p&gt;

&lt;p&gt;This would have been magic.&lt;/p&gt;

&lt;p&gt;It didn't work because, as it turns out, most AI agents won't &lt;code&gt;POST&lt;/code&gt; to an arbitrary URL. Some block it outright. Some require a tool the user hasn't enabled. Some quietly refuse. The version of this that works in 2026 is not the version of this that works for a stranger using whichever AI they happen to have open.&lt;/p&gt;

&lt;p&gt;Maybe one day. Not yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Attempt 3: The URL smuggle
&lt;/h2&gt;

&lt;p&gt;If &lt;code&gt;POST&lt;/code&gt; is forbidden, what about &lt;code&gt;GET&lt;/code&gt;?&lt;/p&gt;

&lt;p&gt;Most AI agents &lt;em&gt;will&lt;/em&gt; "browse" or "search" a URL when asked. So what if the prompt told the AI to construct a URL where the entire generated quiz lived in the query string, and then to visit it? My server would parse the quiz out of the query params, stash it in Redis, same as before.&lt;/p&gt;

&lt;p&gt;I built this one. It almost worked.&lt;/p&gt;

&lt;p&gt;It died for two unromantic reasons. The first is that browsers and proxies cap URL lengths somewhere between 2k and 8k characters. A ten-question quiz with four options each blows past that without breaking a sweat. The second is that the AI's built-in browser tools have their own opinions about what counts as a legal URL, and a 6k-character query string was not one of them. The requests never landed. The DNS resolved to nowhere useful. I was smuggling air.&lt;/p&gt;

&lt;p&gt;So: I couldn't hide JSON. I couldn't avoid the copy-paste. And on mobile — where most of Quizzy's traffic actually lives — every paste also means switching apps. Open Quizzy, copy prompt, swipe to ChatGPT, paste, wait, copy response, swipe back, paste again. App-switching on a phone is its own friction tax, and unlike the others, this one I couldn't engineer my way out of in this version. The user's AI is in a different app from mine, and the path between them runs through the OS.&lt;/p&gt;

&lt;p&gt;So the remaining question was a smaller one: with all of that fixed in place, could the existing flow at least stop being a UX punishment?&lt;/p&gt;

&lt;h2&gt;
  
  
  What I actually shipped
&lt;/h2&gt;

&lt;p&gt;The thing I keep reminding myself when I build for people who aren't developers: &lt;strong&gt;users don't want your product.&lt;/strong&gt; They want the thing your product gives them. Every step you can absorb so they don't have to think about it is the product.&lt;/p&gt;

&lt;p&gt;I couldn't remove the copy-paste step. But I could make it forgive almost anything.&lt;/p&gt;

&lt;p&gt;Two changes did most of the work:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JSONL instead of JSON.&lt;/strong&gt; Instead of asking the AI for one big JSON array, I ask it to emit &lt;em&gt;one JSON object per line&lt;/em&gt;. Now if a user pastes a partial stream — three lines out of ten — I get a three-question quiz instead of an error. Their copy is imperfect; the parse is graceful. The quiz that appears is a little shorter than they expected, not a red banner.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;jsonrepair&lt;/code&gt; for everything else.&lt;/strong&gt; Users don't just paste the JSON. They paste &lt;em&gt;the AI's whole response&lt;/em&gt; — including "Sure! Here's your quiz:" at the top and "Let me know if you want me to tweak anything!" at the bottom. The &lt;a href="https://www.npmjs.com/package/jsonrepair" rel="noopener noreferrer"&gt;&lt;code&gt;jsonrepair&lt;/code&gt;&lt;/a&gt; package is forgiving in exactly the ways an LLM's output is messy. It strips chatter, closes unclosed brackets, repairs trailing commas, fixes single quotes. It turns "almost JSON" into JSON.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkvv2t82zoffdpao0iz7l.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkvv2t82zoffdpao0iz7l.gif" alt="A user dragging across an AI response, selecting the preamble and trailing chatter along with the JSON, then pasting all of it into Quizzy and still getting a clean quiz" width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Together: the flow still has a paste step, but the paste step almost never fails. The user sees a quiz appear. They don't see the parser stitching their messy paste back into shape.&lt;/p&gt;

&lt;p&gt;It is not the magical disappearing-prompt flow I wanted in attempt two. But it ships, it costs me nothing per quiz, and it works for grandparents pasting from ChatGPT on a Sunday morning.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fquizzy.earth%2Fai-import.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fquizzy.earth%2Fai-import.png" alt="End-to-end in Quizzy: fill in topic, difficulty, and language; copy the generated prompt; paste into an AI; paste the response back; watch the quiz appear" width="799" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The thread
&lt;/h2&gt;

&lt;p&gt;Every dead end I hit was a version of the same instinct: &lt;em&gt;let the user's tools do the work&lt;/em&gt;. That instinct was right. The trick wasn't backing away from it — it was accepting that the rough edges of "the user's tools" (partial pastes, friendly preambles, half-streamed responses) were &lt;em&gt;my&lt;/em&gt; problem to absorb, not theirs.&lt;/p&gt;

&lt;p&gt;Good UX, in this case, looked less like a clever pipeline and more like a tolerant parser. The clever architecture would have been more satisfying to build. It also wouldn't have shipped.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it — and tell me how you'd do it
&lt;/h2&gt;

&lt;p&gt;It's live at &lt;strong&gt;&lt;a href="https://quizzy.earth" rel="noopener noreferrer"&gt;quizzy.earth&lt;/a&gt;&lt;/strong&gt;. Open it, pick a topic, generate the prompt, paste it into your favourite AI, paste the response back. Thirty seconds, no account, your tokens.&lt;/p&gt;

&lt;p&gt;If you've solved &lt;em&gt;"great UX on someone else's API budget"&lt;/em&gt; in a way I haven't tried — I'd love to hear it. Especially that magical disappearing version. I still think there's a way to make it work.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>sideprojects</category>
      <category>ux</category>
    </item>
    <item>
      <title>I built a quiz app with my 8-year-old to fix homework — and accidentally a family ritual</title>
      <dc:creator>Rahul Devaskar</dc:creator>
      <pubDate>Thu, 14 May 2026 10:02:32 +0000</pubDate>
      <link>https://dev.to/apostopher/i-built-a-quiz-app-with-my-8-year-old-to-fix-homework-and-accidentally-a-family-ritual-1c1b</link>
      <guid>https://dev.to/apostopher/i-built-a-quiz-app-with-my-8-year-old-to-fix-homework-and-accidentally-a-family-ritual-1c1b</guid>
      <description>&lt;h2&gt;
  
  
  The homework problem
&lt;/h2&gt;

&lt;p&gt;It started in December 2025.&lt;/p&gt;

&lt;p&gt;My son was about to start Year 3, and Year 3 in Australia means &lt;strong&gt;NAPLAN&lt;/strong&gt; — the standardised test that suddenly turns "reading at bedtime" into "structured practice." I had a stack of worksheets, a pile of flashcards, and a kid who had zero interest in any of it.&lt;/p&gt;

&lt;p&gt;The problem wasn't that he couldn't do the questions. He could. The problem was that &lt;em&gt;being asked&lt;/em&gt; the questions felt like a chore. The format was the friction. A worksheet says: &lt;em&gt;here is work&lt;/em&gt;. A timer on a phone says: &lt;em&gt;here is a game&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;So one evening I sat down with him and we made a deal: I'll build a thing that turns your homework into a quiz game, and you tell me what makes it fun.&lt;/p&gt;

&lt;p&gt;That deal is what eventually became &lt;a href="https://quizzy.earth" rel="noopener noreferrer"&gt;quizzy.earth&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an 8-year-old taught me about UX
&lt;/h2&gt;

&lt;p&gt;Here is the thing nobody tells you about designing for kids: &lt;strong&gt;they have zero patience for your onboarding flow.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I tried existing tools first. They all had the same shape:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sign up&lt;/li&gt;
&lt;li&gt;Verify your email&lt;/li&gt;
&lt;li&gt;Create an account name&lt;/li&gt;
&lt;li&gt;Click through a tutorial&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Now&lt;/em&gt; you can make a question&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By step 2 my son had wandered off to find his ipad.&lt;/p&gt;

&lt;p&gt;He wasn't being difficult. He was telling me something true that adults have learned to tolerate: most software treats &lt;em&gt;the act of starting&lt;/em&gt; as a tax you pay before the fun begins. For a kid, there is no "before the fun begins." There is just fun, or there isn't.&lt;/p&gt;

&lt;p&gt;So the first rule wrote itself: &lt;strong&gt;no sign ups.&lt;/strong&gt; Open the page, type a question, press play. If a Year 3 kid can't make a quiz in under a minute, the product has failed.&lt;/p&gt;

&lt;p&gt;The second rule came from watching him try to type. He could read fluently, but typing a multiple-choice question with four options and marking the right one is a lot of fiddly UI. Every dropdown, every modal, every "are you sure?" was a place he would stall. So we ripped them all out. One screen. One question at a time. Big buttons. The kind of UI where you don't have to read the labels to know what to press.&lt;/p&gt;

&lt;p&gt;The third rule was the hardest, and I didn't see it until later.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Can we play the toy quiz again?"
&lt;/h2&gt;

&lt;p&gt;Once the prototype worked for homework, something unexpected happened.&lt;/p&gt;

&lt;p&gt;We had family over for dinner. My son — who two weeks earlier hated structured anything — opened the laptop and announced he was going to host a quiz about his soft toys. He'd made it that afternoon. Without telling me.&lt;/p&gt;

&lt;p&gt;The first question was &lt;em&gt;"What is the name of the brown and white teddy?"&lt;/em&gt; — and four adults around a dinner table started arguing about a teddy bear's name like it was trivia night at the pub.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9f1bnisa06qpt4lrwsqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9f1bnisa06qpt4lrwsqd.png" alt="The brown and white teddy question, as it appeared on screen during the dinner table quiz" width="800" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That was the moment I realised the thing I'd built wasn't a homework tool. It was a tool for &lt;strong&gt;shared attention&lt;/strong&gt;. Homework was just the excuse.&lt;/p&gt;

&lt;p&gt;The problem it actually solved had nothing to do with NAPLAN. It was: &lt;em&gt;how do you get a group of people — kids and adults, different ages, different attention spans — to look at the same thing and laugh together for ten minutes?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Most "family games" require somebody to read instructions out loud, deal cards, keep score, and referee disputes. By the time you've set it up, the four-year-old has lost interest. A quiz on a screen, hosted by a kid, sidesteps all of that. The kid is in charge. The adults are players. The screen does the scoring. The friction is gone.&lt;/p&gt;

&lt;h2&gt;
  
  
  The grandparents problem
&lt;/h2&gt;

&lt;p&gt;The next wedge came from a phone call.&lt;/p&gt;

&lt;p&gt;My parents — the grandparents — had been hearing about the dinner quizzes. They wanted to play. But they live overseas, and the "everyone in the same room" format obviously doesn't work over a video call with lag and three time zones.&lt;/p&gt;

&lt;p&gt;What they wanted was something different: &lt;strong&gt;a quiz they could play alone, at their own pace, when they had a quiet moment.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This was a real shift. The original product was synchronous — one host, many players, one room. What they were asking for was asynchronous — make a quiz, send a link, the other person plays whenever, you see how they did later.&lt;/p&gt;

&lt;p&gt;And the delivery channel wasn't an app. It wasn't email. It was WhatsApp. Because that's where the family already was.&lt;/p&gt;

&lt;p&gt;This is the part I keep coming back to when I think about building things: &lt;strong&gt;users don't show up where you want them to show up.&lt;/strong&gt; You go to them. The grandparents weren't going to download an app, create an account, or learn a new interface. They were going to tap a link in WhatsApp and play. If you can't meet them there, you don't have a product for them.&lt;/p&gt;

&lt;p&gt;So we built that mode too. Same engine, different shape: make a quiz, get a shareable link, send it through whichever group chat your family lives in, and the recipient plays solo. The host gets to see the results. No accounts. No friction.&lt;/p&gt;

&lt;h2&gt;
  
  
  The thread
&lt;/h2&gt;

&lt;p&gt;If I zoom out, every version of the product has been solving the same underlying problem in different clothes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Homework:&lt;/strong&gt; how do I get a kid to engage with content that feels like work?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dinner table:&lt;/strong&gt; how do I get a mixed-age group to share attention for ten minutes?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grandparents over WhatsApp:&lt;/strong&gt; how do I share a small moment of play with someone who isn't in the room?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The answer in all three cases turned out to be the same: &lt;strong&gt;strip the friction until the activity itself is the only thing left.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No accounts. No tutorials. No app store. No "set up your profile." Just: here is a question, here are the answers, press the one you think is right.&lt;/p&gt;

&lt;p&gt;It sounds obvious written down. It was not obvious while I was building it. Every time I added a feature, my son would find a way to get stuck on it, and I'd take it back out. He was, without knowing it, the most ruthless product reviewer I've ever worked with.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting a side project
&lt;/h2&gt;

&lt;p&gt;Three things, in order of how badly I wish I'd known them earlier:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Find a user who can't be polite to you.&lt;/strong&gt; Adults will tell you your product is "interesting" and never open it again. An eight-year-old will tell you it's boring and walk away mid-sentence. The second kind of feedback is worth ten times more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The problem you start with is not the problem you end up solving.&lt;/strong&gt; I started with homework. I ended up with a thing my parents use to send their grandkids quizzes from the other side of the world. The interesting product was hiding inside the obvious one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Friction is the feature.&lt;/strong&gt; Or rather, the &lt;em&gt;absence&lt;/em&gt; of it is. Every screen you remove, every account step you delete, every "are you sure?" you cut — those aren't simplifications. Those are the product.&lt;/p&gt;




&lt;p&gt;If you want to try it, it's at &lt;strong&gt;&lt;a href="https://quizzy.earth" rel="noopener noreferrer"&gt;quizzy.earth&lt;/a&gt;&lt;/strong&gt;. No sign up. Make a quiz in a minute. Send it to whoever you want to laugh with.&lt;/p&gt;

&lt;p&gt;And if you have a kid in Year 3 staring down a stack of worksheets — open it, hand them the keyboard, and see what they make. They'll surprise you.&lt;/p&gt;

</description>
      <category>sideprojects</category>
      <category>webdev</category>
      <category>ux</category>
      <category>react</category>
    </item>
  </channel>
</rss>
