Skip to content

KainAber/tricky-drafting

Repository files navigation

Tricky Drafting

The idea behind the repository is to help Magic: The Gathering players to quickly identify all possible cards ("tricks") which can be played in a game of limited, e.g., draft, by an opponent based on the number of open mana and colors to which they have access.

The code provides a fast web interface to query the Scryfall API for instants or cards with flash fitting the mana / color requirements.

Quickstart

To set up the repository, follow these steps:

  1. Make sure you have Python installed on your machine (the code has been tested for Python 3.9 but the requirements can be adjusted to fit the user's needs)
  2. Optional: Create a Python virtual environment
  3. Start by cloning it and installing the requirements
    git clone https://github.com/KainAber/tricky-drafting.git
    pip install -r requirements.txt
  4. Launch the application
    /path/to/python /path/to/repo/app.py

Now you are ready to use the app!

Start by adjusting the set code if needed (the default code should be the one of the latest Standard-legal expansion) and configure the UI to fit the game state.

To have quick access to the application, an alias can be added to your shell which executes the launch command above.

Known Limitations

The code queries only instants or cards with "flash" in their oracle text.

Therefore, the following known limitations exist:

  • Activated abilities from the hand (cycling, channel, etc)
  • Alternate casting costs
  • Cost reductions
  • Abilities of face-down permanents
  • False positive hits, e.g., cards with flashback

Acknowledgements

  • This project utilizes data from the Scryfall API

About

Web app for checking MtG tricks

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors