Code Monkey home page Code Monkey logo

best-mtg-deck's Introduction

Best-MTG-Deck

Magic: The Gathering, (MTG) is a highly popular trading card game. Since competitive decks used in tournaments are usually expensive stock lists of cards (โ‚ฌ 150 upwards) that change once every 3-12 months, players need to know how much they need to spend to purchase a competitive deck, considering the cards already in their collection. Best-MTG-Deck is a user-friendly solution to this need: you only need to insert your collection of MTG cards (e.g.: 4 Tarmogoyf) to obtain a lot of useful information.

Best-MTG-Deck is a Flask web app that takes a list of cards as an input and shows how much you should spend to build every MTG Tier deck.

The project is currently hosted at https://bestdeckforyou.pythonanywhere.com/

The website

Insert collection

Decks

best-mtg-deck's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nc1292

best-mtg-deck's Issues

Add "Copy" button to decklist page

I should add a button to copy the decklist in one click and a button to copy only the missing cards.
The code is already under the function "function copyBBDeck()" in "decklist_formatter.html", so modifying "deck.html" should be easy.

Change capitalization for saxon genitive

.title() is widely used in the project, resulting in bad capitalization: "Chandra'S Defeat" in place of "Chandra's Defeat". Changing all .title() instances with something able to recognise saxon genitive would be nice.

Deck formatter split is uneven

Signaled by @khalni.
Deck formatter should split at number of lines, not number of card types.

See at https://bestdeckforyou.pythonanywhere.com/decklist_formatter when insert:

Creatures (6):
2 Witherbloom Apprentice
1 Reckless Amplimancer
1 Oriq Loremage
1 Brackish Trudge
1 Bayou Groff
Sorceries (15):
2 Emergent Sequence
2 Rise Of Extus
2 Mage Hunters' Onslaught
2 Agonizing Remorse
1 Mage Duel
1 Leyline Invocation
1 Hunt For Specimens
1 Go Blank
1 Environmental Sciences
1 Devouring Tendrils
1 Basic Conjuration
Instants (4):
2 Big Play
1 Umbral Juke
1 Infuse With Vitality
Lands (15):
8 Forest
7 Swamp
Sideboard
2 Introduction to Annihilation
1 Expanded Anatomy

Update data automatically

I would like to automate the process of getting the data. Specially to have up-to-date prices.

It would be nice to know where did you download the decks, prices, data_types, rarity from. Right now I'm getting it from scryfall bulk data download, but I see some inconsistencies between that data and the one you used. For example the rarity is lower case instead of capitalized and the data_types include the sub-types while the one you provide doesn't. That makes me believe that isn't the data you used and I would have to process it so that it's the same. But I could also download it directly from the same place that you did.

Edit: never mind I've now seen the scraper is at ElLorans/GoldfishScrape. I wish I had seen that before scraping the penny dreadful decks from https://dreadrise.wizzerinus.tk/
Edit2: that scraper only gets the decklists, so I'm still curious about the rest of the data.

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.