Giter Site home page Giter Site logo

deckbuilder's Introduction

Magic: The Gathering Deckbuilder

Author: Craig Harrison



Launch:

From the deckbuilder directory, execute the command "python deckbuilder.py".



Commands:

At the deckbuilder prompt enter 'help' for a list of supported commands.



Usage Example:

$ python deckbuilder.py 
MtG Deck Builder
# deck My Awesome Deck
Created new deck 'My Awesome Deck'.
[My Awesome Deck]# add 24 Forest
--------------------------------------------------------------------------------
                                My Awesome Deck                                 
--------------------------------------------------------------------------------
 24   Forest                      Basic Land                                 
Total: 24
---------------------------------- Sideboard -----------------------------------
                                   -nothing-                                    
[My Awesome Deck]# add 4 Verdant Force
--------------------------------------------------------------------------------
                                My Awesome Deck                                 
--------------------------------------------------------------------------------
 24   Forest                      Basic Land                                 
  4   Verdant Force               Creature              5{G}{G}{G}       7 / 7
Total: 28
---------------------------------- Sideboard -----------------------------------
                                   -nothing-                                    
[My Awesome Deck]# add 4 Giant Growth
--------------------------------------------------------------------------------
                                My Awesome Deck                                 
--------------------------------------------------------------------------------
 24   Forest                      Basic Land                                 
  4   Giant Growth                Instant               {G}                  
  4   Verdant Force               Creature              5{G}{G}{G}       7 / 7
Total: 32
---------------------------------- Sideboard -----------------------------------
                                   -nothing-                                    
[My Awesome Deck]# card Verdant Force

Verdant Force
cost:     5{G}{G}{G} (8)
type:     Creature
subtype:  Elemental
P/T:      7 / 7

At the beginning of each upkeep, put a 1/1 green
Saproling creature token onto the battlefield.

"Left to itself, nature overflows any container,
overthrows any restriction, and overreaches any
boundary."
[My Awesome Deck]# add 4 Runeclaw Bear
--------------------------------------------------------------------------------
                                My Awesome Deck                                 
--------------------------------------------------------------------------------
 24   Forest                      Basic Land                                 
  4   Giant Growth                Instant               {G}                  
  4   Runeclaw Bear               Creature              1{G}             2 / 2
  4   Verdant Force               Creature              5{G}{G}{G}       7 / 7
Total: 36
---------------------------------- Sideboard -----------------------------------
                                   -nothing-                                    
[My Awesome Deck]# summ Creature
--------------------------------------------------------------------------------
                                My Awesome Deck                                 
--------------------------------------------------------------------------------
  4   Runeclaw Bear               Creature              1{G}             2 / 2

  4   Verdant Force               Creature              5{G}{G}{G}       7 / 7
       At the beginning of each upkeep, put a 1/1 green Saproling creature...

Total: 8
[My Awesome Deck]# managram

 Cost   Cards
------|-------
   0       0  
   1       4  ====
   2       4  ====
   3       0  
   4       0  
   5       0  
   6       0  
   7       0  
   8       4  ====
[My Awesome Deck]# prob 4 Forest AND 2 Verdant Force OR Runeclaw Bear

 Turn   Cards   Probability
------|-------|-------------
   0       7       35.64%
   1       8       52.27%
   2       9       64.02%
   3      10       72.41%
   4      11       78.77%
   5      12       83.81%
   6      13       87.84%
   7      14       91.05%
   8      15       93.56%
   9      16       95.48%
  10      17       96.92%
  11      18       97.96%
  12      19       98.70%
  13      20       99.20%
  14      21       99.53%
  15      22       99.74%
[My Awesome Deck]# save
Saved deck 'My Awesome Deck'.
[My Awesome Deck]# exit

deckbuilder's People

Contributors

cragcraig avatar huangkev89 avatar kevin-hanselman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.