Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: [1]

Author Topic: The Dominion Card Sorter  (Read 1659 times)

0 Members and 1 Guest are viewing this topic.


  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1172
  • Shuffle iT Username: Schneau
  • Respect: +1450
    • View Profile
    • Rainwave
The Dominion Card Sorter
« on: August 23, 2013, 11:54:07 am »

Would you like to order some Dominion cards, either for something like Qvist's rankings or Wandering Winder's Power Rankings, without having to do it all by hand? If so, I have a Python program for you!

The Dominion Card Sorter is a program I wrote to help me sort things for Qvist's lists. Around last time that was happening, I published the program and a few people used it. Since then, I've cleaned it up and added some other related utility programs. All of them are open source - feel free to use it or edit it as you like! Here's the description I put in the readme:
This is the main utility. You can use it to sort different lists of Dominion cards, such as $4 cards, Potion cost cards, Knights, and Ruins. Use it from command line with python
This program takes a list of all the cards that you have sorted into some sort of order, with better (or more favorite) cards coming earlier. It then prints the expansions sorted by the average ranks of the cards in each expansion. For example, to print the expansions using Wandering Winder's Power Rankings 2, you can type python CardLists/WWPowerRankings2.txt. This will tell you which expansions WW thinks are strongest, and gives this output (lower=better):
Code: [Select]
Cornucopia  75.3
Hinterlands 88.8
Dark Ages   99.2
Guilds      99.2
Prosperity  103.1
Intrigue    104.0
Seaside     107.5
Alchemy     117.7
Base        121.1
Promo       131.2
This program is similar to It takes a list of all the cards sorted into an order. It then asks which expansion you are interested in, and prints all of the cards from that expansion along with their ranks in your list. For example, if you want to use Wandering Winder's Power Rankings 2, you can type python CardLists/WWPowerRankings2.txt.
Pages: [1]

Page created in 0.074 seconds with 20 queries.