Skip to content
 
 

Latest commit

 

History

83 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using this repo

  1. Install build tools (if necessary!)

    xcode-select --install
    sudo easy_install pip
    brew install conan
    conan remote add vthiery https://api.bintray.com/conan/vthiery/conan-packages
  2. Download MtG card data

    cd data
    ./download.sh
  3. Put your collection of cards as a CSV file in data/collection.csv with format:

    Quantity,Name,Code,PurchasePrice,Foil,Condition,Language,PurchaseData
    

    (This is the default file output format for MTG Manager on iOS. See data/collection_dons.csv for an example.)

    Make sure that this file contains no basic lands.

  4. Install python deps

    cd ../mechanic_models
    pip install -r requirements.txt
  5. Build mechanics and interactions models

    ./run.sh
  6. Build genetic algorithm

    cd ../deck_builder
    conan install .
    cmake .
    cmake --build .
  7. Run the genetic algorithm

     ./bin/magique ../data collection.csv

Thanks

About

A tool that applies genetic algorithms to building Magic: The Gathering decks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages