Adding cards to your deck
Cards are added to your deck through the search interface. When you add a card:- The card is initialized with a quantity of 1
- It appears in the deck list table
- Probability calculations begin automatically for non-land cards
- The card is stored in Redux state with a unique identifier
If a card is already in your deck, adding it again won’t create a duplicate entry. Use the quantity controls to adjust the count instead.
Adjusting card quantities
Each card in your deck has increment (+) and decrement (-) buttons to adjust quantities:Increment button (green)
- Adds one copy of the card to your deck
- Automatically disabled when you have 4 copies of non-basic land cards
- Basic lands can exceed the 4-card limit
Decrement button (blue)
- Removes one copy of the card from your deck
- Disabled when quantity is less than 1
Removing cards
The remove button (red X icon) completely removes a card from your deck, regardless of quantity. This action:- Removes the card from the deck list table
- Updates Redux state by filtering out the card by
uniqueName - Triggers recalculation of probabilities for remaining cards
Viewing card images
Click the eye icon next to any card to view its full card image in a side drawer:- The drawer opens from the left side
- Card images are fetched from Wizards of the Coast’s Gatherer database
- The image URL format:
http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid={id}&type=card - Click the eye icon again to close the drawer
Deck list table interface
The main deck list table displays comprehensive information about each card:Table columns
| Column | Description |
|---|---|
| Name | Card name |
| View | Eye icon button to display card image |
| Quantity | Current number of copies in deck |
| Inc | Increment quantity button |
| Dec | Decrement quantity button |
| Remove | Remove card entirely from deck |
| 1-8 | Probability percentages for turns 1 through 8 |
Turn-by-turn columns
The columns numbered 1-8 represent game turns and display:- For non-land cards: Probability percentage that you can play the card by that turn
- For land cards: Mana symbol icon showing what colors the land produces
- Loading state: Circular progress indicator while calculating
The
draws parameter (7 + turn number) accounts for your starting hand of 7 cards plus one draw per turn.Redux state management
The deck builder uses Redux for centralized state management with three core actions:ADD_CARD_TO_DECK
Adds a new card to the deck with quantity 1:UPDATE_CARD_IN_DECK
Updates properties of an existing card (typically quantity):REMOVE_CARD_FROM_DECK
Removes a card completely from the deck:Reducer logic
The deck reducer manages state updates:The
ADD_CARD_TO_DECK action checks if the card already exists by uniqueName and won’t create duplicates.Component connection
The DeckList component connects to Redux usingreact-redux:
Related pages
Probability calculator
Learn how playability probabilities are calculated
Mana optimization
Understand mana base analysis and optimization
