A browser simulation of the DEF CON 34 badge's population-genetics system: 10,000+ virtual badges evolving in your tab, plus a widget that can talk to your physical DC34 badge over the QR exchange.
Live at dc34sim.com.
Open index.html in a browser. No install, no build step, no
camera required.
Want the standalone, browser-native static HTML page so you can tinker with it and run it locally? It lives on the
gh-pagesbranch — view it on GitHub, or grab just that branch with:git clone -b gh-pages --single-branch https://github.com/charlesreid1/dc34sim.git python3 -m http.server 8000Then visit
http://localhost:8000.
Six tabs, each a different lens on the same genetics core:
- popsim - evolve a whole population of badges. Click any cell to inspect it.
- vim gene - edit one badge's genome (a diploid: 2 x 9 bytes) and mint QRs a real badge will accept.
- skeet - take one diploid and enumerate every gamete it can produce (all
2^5 = 32), then pick one and seal it into a QR for a real badge. - eggstraction - non-destructive genome readout of a physical badge: mint nonces, collect the badge's sealed gametes, and reconstruct its diploid from the accumulated statistics.
- borg - same as popsim, but every mating uses one frozen partner, ROOT.
- badgecestry - decode one badge's ancestry composition with a two-stage hidden Markov model.
Any specimen inspector can send its selected badge to vim gene, skeet, or badgecestry, so the tabs compose into a pipeline: evolve a population, pull out an individual, edit it, enumerate its gametes, seal one, then hand the QR to a physical badge.
faq.md- user-facing FAQ, keyed by tab.synthetic-population-genetics.md- the genetics core (haploids, loci, mutation, meiosis, mating).gene-exchange.md- the three-phase QR protocol for talking to a physical badge.borg-genetics.md- the ROOT-partner colony variant.badgecestry.md- the two-stage HMM used for ancestry decoding.skeet.md- the gamete-enumeration tab: genetics primer + physical-badge exchange.eggstraction.md- inverse of skeet: reconstruct a physical badge's diploid from many observed gametes (mutation-aware).
bunnie/dc34-api- genetics core:Haploid,Diploid,BadgeType,phenotype,meiosis,mutate.bunnie/dc34-vault- exchange state machine and the k0 oracle.bunnie/dc34-console- LED renderer.nastea1/dc34-gamete- QR wire format, published k0, and the reference workbench.- U.S. Patent 12,626,778 - "Accelerated hidden Markov models for genotype analysis".
- Huge thanks to Bunnie Huang - creator of the DC34 badge and chip - and to the entire DEF CON 34 badge team, without whom none of this would exist.
- badgecestry - the two-stage HMM ancestry decoder draws on techniques described in Ancestry.com's U.S. Patent 12,626,778, "Accelerated hidden Markov models for genotype analysis".
See LICENSE.

