Galaxy Stats

About

Meta analysis reports for "Once Upon A Galaxy" tournaments
What is Galaxy Stats?

Galaxy Stats processes tournament data from galaxy.fun to generate comprehensive meta analysis reports. We analyze winning decklists from gauntlet finishers to uncover:

How the Analysis Works
Data Collection
We parse tournament results from galaxy.fun, extracting winning decks, captains, and card compositions. No personal data is collected — only aggregate deck statistics.
Card Clustering
Cards are grouped by how frequently they appear together in winning decks. We use hierarchical clustering to find natural groupings — if Gold and Gems appear together often, they form a "Treasure" cluster. Each cluster represents a playstyle archetype (Treasures, Candy, Mage, Pirates, Animals, etc.).
Captain Analysis — Lift
Lift measures which cards are over-represented with specific captains. It compares how often a card appears with a captain versus how often it appears overall. A lift of 2.0× means the card appears twice as often with this captain than expected. This reveals each captain's unique "signature cards."
Best 12 Analysis
For each captain, we identify the 12 most commonly played cards across all winning decks piloted by that captain. This represents data-driven optimal picks for deck building.
What You'll Find in Reports

Top Cards: Overall popularity across all winning decks — these are the cards players add voluntarily on top of the default set.

Card Archetypes: Natural groupings based on co-occurrence patterns, showing which cards are played together.

Captain Signatures: Lift-based associations revealing unique synergies between captains and specific cards.

Best Picks: Frequency-based recommendations per captain for optimal deck building.

Technical Stack
BeautifulSoup4 — HTML parsing
NumPy — Matrix operations
SciPy — Hierarchical clustering
Python — ETL pipeline
GitHub Pages — Static hosting
Reports are standalone HTML files with embedded CSS, JavaScript, and data. No external dependencies, no tracking, works offline.
Open Source

Galaxy Stats is open source. The ETL pipeline, analysis scripts, and report generation code are available on GitHub.

github.com/edmundlam/galaxy-stats

← Back to latest report