Skip to main content

Build Better MTG Decks with Mathematical Precision

Use hypergeometric distribution to calculate optimal mana probabilities and ensure you can play your cards on curve, every game.

Turn 1 Land99.4%
Turn 3 Playable87.2%
Turn 4 Colors91.8%

Real probability calculations for your deck

Quick Start

Get your first deck analyzed in minutes

1

Clone and Install

Clone the repository and install dependencies to get started.
git clone https://github.com/bryanhclark/mtgDeckBuilder.git
cd mtgDeckBuilder
npm install
2

Start the Application

Launch the development server to access the deck builder interface.
npm run start:dev
The application will be available at http://localhost:4000
3

Build Your First Deck

Search for cards, add them to your deck, and watch the probability calculator automatically compute your mana curve statistics. The tool will show you the likelihood of being able to play each card on turns 1-8.
The probability calculator uses Frank Karsten’s hypergeometric distribution methodology to ensure accurate mana base recommendations.

Core Features

Everything you need to optimize your Magic: The Gathering decks

Probability Calculator

Calculate the exact probability of drawing playable hands using hypergeometric distribution

Mana Optimization

Optimize your mana base for multi-color decks with fetch land support

Interactive Deck Building

Add, remove, and adjust card quantities with real-time probability updates

Turn-by-Turn Analysis

See playability percentages for turns 1-8 to understand your deck’s curve

Resources & Documentation

Deep dive into the API and contribute to the project

API Reference

Integrate probability calculations into your own tools

Architecture

Understand the application structure and design

Contributing

Help improve the deck builder for the community

Ready to Build Better Decks?

Join competitive Magic players who use math to optimize their mana bases and win more games.

Get Started Now