Dominion Strategy Forum

Please login or register.

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

Author Topic: Improved IGG bot  (Read 2339 times)

0 Members and 1 Guest are viewing this topic.

blueblimp

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2849
  • Respect: +1559
    • View Profile
Improved IGG bot
« on: February 16, 2012, 07:56:53 pm »
0

(Edit: HiveMindEmulator points out in a reply to this that WW already posted an improved IGG bot in the BM+X thread.)

Nothing exciting here: I simply added a rule to buy Province whenever possible. This improves on the IGG bot that is included with Geronimoo's simulator. It is a little stronger against BMU & Smithy and a lot stronger in a mirror.

Edit: I should probably explain why I made a post for such a boring bot. The reason is that I sometimes look at bots to find the "canonical" way to play one-card strategies, and for IGG the current bot seems to suggest that it's better to only buy duchies and not provinces, which is false.

Results are from "Accurate Simulation (10000 games)" and are given with 99% confidence intervals. "IGG" is the original IGG bot, and "IGG2" is the one that buys Province when it can afford it.

IGG vs BMU:
Win: 89.2% +/- 0.8%
Loss: 9.5% +/- 0.8%
Tie: 1.3% +/- 0.3%

IGG2 vs BMU:
Win: 93.6% +/- 0.6%
Loss: 5.9% +/- 0.6%
Tie: 0.5% +/- 0.2%

IGG vs Smithy:
Win: 73.6% +/- 1.1%
Loss: 24.3% +/- 1.1%
Tie: 2.1% +/- 0.4%

IGG2 vs Smithy:
Win: 84.2% +/- 0.9%
Loss: 14.4% +/- 0.9%
Tie: 1.4% +/- 0.3%

IGG2 vs IGG:
Win: 63.6% +/- 1.2%
Loss: 30.1% +/- 1.2%
Tie: 6.3% +/- 0.6%

IGG2 bot:
Code: [Select]
<player name="Ill-Gotten Gains Improved"
 author="blueblimp"
 description="Get all the Ill-Gotten Gains and Duchies to empty 3 piles. Grabbing Province whenever possible improves the bot.">
 <type name="BigMoney"/>
 <type name="UserCreated"/>
 <type name="SingleCard"/>
 <type name="TwoPlayer"/>
 <type name="Province"/>
 <type name="Bot"/>
 <type name="Competitive"/>
   <buy name="Province"/>
   <buy name="Ill_Gotten_Gains"/>
   <buy name="Duchy"/>
   <buy name="Estate">
      <condition>
         <left type="gainsNeededToEndGame"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Silver"/>
</player>
« Last Edit: February 16, 2012, 10:57:45 pm by blueblimp »
Logged

HiveMindEmulator

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2222
  • Respect: +2118
    • View Profile
Re: Improved IGG bot
« Reply #1 on: February 16, 2012, 09:56:22 pm »
0

Logged

blueblimp

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2849
  • Respect: +1559
    • View Profile
Re: Improved IGG bot
« Reply #2 on: February 16, 2012, 10:47:40 pm »
0

WW already did some further optimization:
http://forum.dominionstrategy.com/index.php?topic=625.msg24198#msg24198

Ah thanks, I only checked the second post of that thread, oops.

Edit: I was curious to see how badly WW's bot defeats the dumb bot I posted, so here are the results:

WWIGG vs IGG2 (on ultimate simulation, so the confidence intervals are tighter):
Win: 48.0% +/- 0.4%
Loss: 46.4% +/- 0.4%
Tie: 5.6% +/- 0.2%

So WW's bot has a narrow but measurable edge.
« Last Edit: February 16, 2012, 10:53:29 pm by blueblimp »
Logged
Pages: [1]
 

Page created in 0.038 seconds with 20 queries.