Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: 1 2 3 [4]  All

Author Topic: Project: Optimizing Big Money X  (Read 39605 times)

0 Members and 1 Guest are viewing this topic.

WanderingWinder

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5275
  • ...doesn't really matter to me
  • Respect: +4381
    • View Profile
    • WanderingWinder YouTube Page
Re: Project: Optimizing Big Money X
« Reply #75 on: April 12, 2012, 11:40:11 pm »
0

Improvements for a few bots:

Warehouse:
Code: [Select]
<player name="WarehouseWW"
 author="WanderingWinder"
 description="The optimized Warehouse bot that buys no other actions">
 <type name="TwoPlayer"/>
 <type name="Generated"/>
 <type name="BigMoney"/>
 <type name="Bot"/>
 <type name="UserCreated"/>
 <type name="SingleCard"/>
 <type name="Province"/>
   <buy name="Province">
      <condition>
         <left type="getTotalMoney"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="16.0"/>
      </condition>
   </buy>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="4.0"/>
      </condition>
   </buy>
   <buy name="Estate">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Gold"/>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="6.0"/>
      </condition>
   </buy>
   <buy name="Warehouse">
      <condition>
         <left type="countCardsInDeck" attribute="Warehouse"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
      <condition>
         <left type="getTotalMoney"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="11.0"/>
      </condition>
   </buy>
   <buy name="Warehouse">
      <condition>
         <left type="countCardsInDeck" attribute="Warehouse"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="getTotalMoney"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="18.0"/>
      </condition>
   </buy>
   <buy name="Silver"/>
   <buy name="Estate">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="3.0"/>
      </condition>
   </buy>
</player>

Embassy:
Code: [Select]
<player name="EmbassyWW"
 author="WanderingWinder"
 description="The optimized Embassy strategy that buys no other actions.">
 <type name="TwoPlayer"/>
 <type name="BigMoney"/>
 <type name="Bot"/>
 <type name="UserCreated"/>
 <type name="Optimized"/>
 <type name="SingleCard"/>
 <type name="Province"/>
   <buy name="Province">
      <condition>
         <left type="getTotalMoney"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="13.0"/>
      </condition>
      <condition>
         <left type="countCardsInDeck" attribute="Embassy"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Province">
      <condition>
         <left type="getTotalMoney"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="15.0"/>
      </condition>
   </buy>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="4.0"/>
      </condition>
   </buy>
   <buy name="Estate">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Embassy">
      <condition>
         <left type="countCardsInDeck" attribute="Embassy"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
   </buy>
   <buy name="Gold"/>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="5.0"/>
      </condition>
   </buy>
   <buy name="Embassy">
      <condition>
         <left type="countCardsInDeck" attribute="Embassy"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="7.0"/>
      </condition>
   </buy>
   <buy name="Silver"/>
</player>
Well, I should add some buy estates sooner with exactly $2 clauses at the end. Oh well.


And, most importantly, Wharf:
Code: [Select]
<player name="WharfWW"
 author="WanderingWinder"
 description="The optimized Wharf strategy that buys no other actions.">
 <type name="TwoPlayer"/>
 <type name="BigMoney"/>
 <type name="Bot"/>
 <type name="UserCreated"/>
 <type name="Optimized"/>
 <type name="SingleCard"/>
 <type name="Province"/>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="equalTo" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="countVP"/>
         <operator type="smallerThan" />
         <right type="countMAXOpponentVP"/>
      </condition>
      <condition>
         <left type="countVP"/>
         <operator type="greaterOrEqualThan" />
         <right type="countMAXOpponentVP"/>
         <extra_operation type="minus" attribute="3.0" />
      </condition>
   </buy>
   <buy name="Province">
      <condition>
         <left type="getTotalMoney"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="16.0"/>
      </condition>
   </buy>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="4.0"/>
      </condition>
   </buy>
   <buy name="Estate">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Wharf">
      <condition>
         <left type="countCardsInDeck" attribute="Wharf"/>
         <operator type="smallerThan" />
         <right type="countCardTypeInDeck" attribute="Treasure"/>
         <extra_operation type="divideBy" attribute="8.0" />
      </condition>
   </buy>
   <buy name="Gold"/>
   <buy name="Wharf">
      <condition>
         <left type="countCardsInDeck" attribute="Wharf"/>
         <operator type="smallerThan" />
         <right type="countCardTypeInDeck" attribute="Treasure"/>
         <extra_operation type="divideBy" attribute="4.0" />
      </condition>
   </buy>
   <buy name="Duchy">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="6.0"/>
      </condition>
   </buy>
   <buy name="Silver"/>
   <buy name="Estate">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="4.0"/>
      </condition>
   </buy>
</player>

WanderingWinder

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5275
  • ...doesn't really matter to me
  • Respect: +4381
    • View Profile
    • WanderingWinder YouTube Page
Re: Project: Optimizing Big Money X
« Reply #76 on: May 20, 2012, 07:59:05 pm »
+1

For those who want it, here's an XML of all the latest single-card optimizations I have.

rrenaud

  • Administrator
  • *****
  • Offline Offline
  • Posts: 991
  • Uncivilized Barbarian of Statistics
  • Respect: +1197
    • View Profile
    • CouncilRoom
Re: Project: Optimizing Big Money X
« Reply #77 on: May 20, 2012, 11:24:04 pm »
+2

I encourage you to use github for this kind of stuff.  Really, those strategy files are basically code, and real source control is nice to be able to see diffs, track history, etc.

Of course, keep using the forum if you like prefer it.
Logged

HiveMindEmulator

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2222
  • Respect: +2118
    • View Profile
Re: Project: Optimizing Big Money X
« Reply #78 on: May 21, 2012, 11:33:45 am »
0

Is there a way to load the whole .xml file into the simulator at once, or do you have to paste each bot in as you want to use it?
Logged

WanderingWinder

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5275
  • ...doesn't really matter to me
  • Respect: +4381
    • View Profile
    • WanderingWinder YouTube Page
Re: Project: Optimizing Big Money X
« Reply #79 on: May 21, 2012, 11:38:41 am »
0

I think you can just save the file to your computer, then load it via the 'load players' in the simulator, and it should grab them all...

HiveMindEmulator

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2222
  • Respect: +2118
    • View Profile
Re: Project: Optimizing Big Money X
« Reply #80 on: May 21, 2012, 11:40:33 am »
0

ah, yeah, I didn't even notice there is a "file" menu at the top. alternatively, if you select it all and paste in in one player it also works...
Logged
Pages: 1 2 3 [4]  All
 

Page created in 0.515 seconds with 21 queries.