<?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: Rapen</title>
    <description>The latest articles on DEV Community by Rapen (@rapen).</description>
    <link>https://dev.to/rapen</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%2F4007807%2F320bafba-7b64-4bd4-a8a5-8eb528d3f1e6.png</url>
      <title>DEV Community: Rapen</title>
      <link>https://dev.to/rapen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rapen"/>
    <language>en</language>
    <item>
      <title>How I Built "Build a Footballer": A Deterministic Season Simulator for a Card Game</title>
      <dc:creator>Rapen</dc:creator>
      <pubDate>Mon, 10 Aug 2026 09:35:50 +0000</pubDate>
      <link>https://dev.to/rapen/how-i-built-build-a-footballer-a-deterministic-season-simulator-for-a-card-game-4k1o</link>
      <guid>https://dev.to/rapen/how-i-built-build-a-footballer-a-deterministic-season-simulator-for-a-card-game-4k1o</guid>
      <description>&lt;p&gt;Build a footballer — that one phrase is the whole product, and it's also a surprisingly good design constraint. I wanted a web game where you create your own player from a draft, then watch that player live out a full season. This post is about the two decisions that made it work: a 12-trait draft that gives every build a distinct identity, and a season simulator that's deliberately deterministic so the leaderboard stays fair and the stories stay shareable.&lt;/p&gt;

&lt;p&gt;The core loop: build a footballer by stealing traits&lt;/p&gt;

&lt;p&gt;To build a footballer, you don't fill in a stat sheet — you draft one. The loop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Spin a club-era pool.&lt;/li&gt;
&lt;li&gt;See 3–5 players from that pool.&lt;/li&gt;
&lt;li&gt;Pick one, steal a single trait.&lt;/li&gt;
&lt;li&gt;Repeat 12 times.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After 12 rounds you have a card that's genuinely yours. The draft is the hook; the season is the payoff.&lt;/p&gt;

&lt;p&gt;Why 12 traits instead of 6&lt;/p&gt;

&lt;p&gt;Most "create your own player" games use a compact stat set (speed, shooting, passing, dribbling, defending, physical). That converges fast — everyone ends up with the same meta build. We went wider, with 12 independent axes:&lt;/p&gt;

&lt;p&gt;PAC  FIN  SHO  PAS  VIS  DRI&lt;br&gt;
CRS  DEF  PHY  STA  WF  CLU&lt;/p&gt;

&lt;p&gt;Pace, Finishing, Shooting, Passing, Vision, Dribbling, Crossing, Defending, Physical, Stamina, Weak Foot, and Club. With 12 independent axes, a winger, a target man, and a regista at the same OVR all feel genuinely different. And CLU (club) is the curveball — it carries club/era context that feeds the narrative engine below.&lt;/p&gt;

&lt;p&gt;The season simulator: deterministic, so the build is the story&lt;/p&gt;

&lt;p&gt;A full career is 38 league matches plus cup competitions, producing trophies, goals, assists, and signature moments — not just a stat sheet.&lt;/p&gt;

&lt;p&gt;The deliberate design choice: results are deterministic. Given the card's traits and a seed, the same build always produces the same season:&lt;/p&gt;

&lt;p&gt;season(traits, seed) -&amp;gt; { table, goals, assists, moments }&lt;/p&gt;

&lt;p&gt;Why not random? Because when you let people build a footballer and compete, randomness breaks three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fair leaderboards. Identical builds should get identical seasons — otherwise ranking ranks luck, not skill.&lt;/li&gt;
&lt;li&gt;Testability. Determinism means I can assert exact outcomes in CI. The hardest part of game dev is testing; this makes it a non-issue.&lt;/li&gt;
&lt;li&gt;Shareable stories. "My striker scored 30" only means something if it's reproducible for the same build.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Seed policy: one engine, two modes&lt;/p&gt;

&lt;p&gt;Deterministic doesn't mean identical for everyone. It's controlled by seed policy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Daily Challenge pins everyone to the same seed → fair shared leaderboard.&lt;/li&gt;
&lt;li&gt;Free play uses a per-player seed → everyone can build a footballer their own way.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Same engine, one knob. That's how a single simulator serves both a competition and a sandbox.&lt;/p&gt;

&lt;p&gt;Takeaways&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reproducibility beats drama when your game has a leaderboard/social layer.&lt;/li&gt;
&lt;li&gt;Seed policy is a feature, not an implementation detail.&lt;/li&gt;
&lt;li&gt;Granular trait axes give a deterministic engine real input variety.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it&lt;/p&gt;

&lt;p&gt;The whole thing is free to play. Build a footballer, steal some traits, and sim a season:&lt;/p&gt;

&lt;p&gt;👉 buildafootballer.co (&lt;a href="https://buildafootballer.co/" rel="noopener noreferrer"&gt;https://buildafootballer.co/&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;I'm curious how other devs handle the randomness-vs-fairness tradeoff in community games. What do you seed, and what do you leave to chance?&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>software</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
