Magic Deck Builder
- 8 Devlogs
- 13 Total hours
Magic Deck Builder uses AI to make magic Decks
Magic Deck Builder uses AI to make magic Decks
I worked on the algorithm for recommending land, and I ported my Express app to Github Pages. I also redid the UI
The algorithm just takes the ratio of required land, and compares that to the ratio of the land that is already in the deck and tries to match the two, it just works slightly better than before and accounts for more edge cases
Github pages is fully static, meaning I had to trade out all my server side code for client side stuff, it doesn’t affect the user too much, but limits the app in the long run. But anyway you can actually use it
now.
I just think it looks slightly better, and provides more feedback on the search, and gives slightly more info on the card. As I am sure you can tell front-end is not where I excel, but it is slightly better than before.
I just fixed a bunch of bugs before I decide to ship this.
Worked on fixing some basic bugs in the card recommendation, so that I could make it work better with wild Mana on cards, it took me 30 minutes to realize a variable should have had the let keyword instead of the var keyword. But now it works much better and is in a place to where I can start adding slightly more advanced recommendations.
Added a simple non-ai based card recommender for land, I also added a simple graph showing the land distribution. Started working on the backend for the AI recomendation.
The land recommendations identifies the gap between the mana required and the mana owned, a proportion based system would be better.
I wrote a script to get data for training the AI
The app will use AI to help make recommendations on what cards are good for the app. The script I wrote scrapes the internet for complete decks and saves what cards they have into a JSON that can be used to train the AI later.
Made a basic website and managed to get the search feature working
The website is a really basic layout but should be fine for now.
Search uses the Magic The Gathering API (https://api.magicthegathering.io). It queries every time the search bar changes.