zachanassian / tu_optimize

Tyrant Unleashed Optimizer
http://zachanassian.github.io/tu_optimize/
Other
8 stars 14 forks source link

Tyrant Unleashed Optimizer

Deck Simulator and Optimizer for Tyrant Unleashed!

Usage

usage: tu_optimize.exe Your_Deck Enemy_Deck [Flags] [Operations]

Your_Deck:
  the name/hash/cards of a custom deck.

Enemy_Deck:
  1) semicolon separated list of defense decks, syntax:
     deck1[:factor1];deck2[:factor2];...
     where deck is the name/hash/cards of a mission or custom deck, and factor is optional. The default factor is 1.
     example: "94. Heart of Tartarus" is the deck of mission 94. Heart of Tartarus at Level 10.
     example: "eerie-spam:0.2;nbd-spam:0.8" means eerie-spam is the defense deck 20% of the time, while nbd-spam is the defense deck 80% of
the time.
  2) a regular expression surrounded by /.
     regular expression will be used to search all custom decks for matching keys.
     example: "/^GT/" will select all custom decks starting with the letters GT.

Mode:
  pvp: attacker goes first. Simulate/optimize for win rate. Normally used for missions or pvp. [default]
  pvp-defense: attacker goes second. Simulate/optimize for win rate + stall rate. Normally used for pvp defense.
  gw: attacker goes second. Simulate/optimize for win rate. Normally used for guild wars.
  gw-abp: attacker goes second. Simulate/optimize for average battle points. Normally used for guild wars.
  gw-defense: attacker goes first. Simulate/optimize for win rate + stall rate. Normally used for gw defense.
Order:
  random: the attack deck is played randomly. [default]
  ordered: the attack deck is played in order instead of randomly (respects the 3 cards drawn limit).
Flags:
  yfort <your_fortress_cards>: your fortress structures. your_fortress_cards: the name/hash/cards of one or two fortress structures.
  efort <enemy_fortress_cards>: enemy fortress structures. enemy_fortress_cards: the name/hash/cards of one or two fortress structures.
  -e <effect>: set the battleground effect.
               use "tu_optimize Po Po -e list" to get a list of all available effects.
  -t <num>: set the number of threads, default is 4.
  -turnlimit <num>: set the number of turns in a battle, default is 50.
  -v: less verbose output. Omits output about your and enemy's deck and fortress
Flags for climb:
  -c: don't try to optimize the commander.
  -L <min> <max>: restrict deck size between <min> and <max>.
  -o: restrict to the owned cards listed in "data/ownedcards.txt".
  -o=<filename>: restrict to the owned cards listed in <filename>.
                       example: -o=data/mycards.txt.
  -o=<cards>: restrict to the owned cards specified.
                 example: -o="Sacred Equalizer#2, Infantry".
  -C: load custom cards from "data/customcards.txt".
  -C=<filename>: load custom cards from .
  -C=<cards>: load custom cards specified.
              format:
                CardName1, Rarity Faction attack/health/delay, skill 1, skill 2, ... ; CardName2, ...
              example:
                -C="Commander Sheppard, Legendary Raider 100HP, rally all 3; Gremlin, common bloodthirsty 1/3/0, berserk 1, leech 1"
  target <num>: stop as soon as the score reaches <num>.

Operations:
  sim <num>: simulate <num> battles to evaluate a deck.
  climb <num>: perform hill-climbing starting from the given attack deck, using up to <num> battles to evaluate a deck.
  reorder <num>: optimize the order for given attack deck, using up to <num> battles to evaluate an order.

Remark: Due to html character escaping this might read awkward in readme.txt. Open https://github.com/zachanassian/tu_optimize/blob/master/README.md to get latest version in formatted view.

If you receive virus warnings for SimpleTUOptimizeStarter.exe please read here.

Changelog

Version 3.7.0

Version 3.6.0

Version 3.5.0

Version 3.4.0

Version 3.3.2

Version 3.3.1

Version 3.3.0

Version 3.2.0

Version 3.1.0

Version 3.0.0

Version 2.5.0

Version 2.4.0

Version 2.3.0

Version 2.2.0

Version 2.1.0

Version 2.0.1

Version 2.0.0

Version 1.2.1

Version 1.2.0

Version 1.1.3

Version 1.1.2

Version 1.1.1

Version 1.1

Version 1.0.2

Version 1.0.1

Version 1.0

Version 1.0[RC]

Version 0.10.1

Version 0.10

Version 0.9

Version 0.8

Version 0.7

Version 0.6

Version 0.5

Version 0.4

Version 0.3

Version 0.2

Version 0.1