Dominion Strategy Forum

Please login or register.

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

Author Topic: Simulating Challange #1  (Read 3479 times)

0 Members and 1 Guest are viewing this topic.

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1487
    • View Profile
Simulating Challange #1
« on: July 01, 2011, 04:33:20 am »
0

So as Geronimoo has developed us this nice simulator, and yesterday we kind of had a little challenge with this Alchemist/Councilroom/Venturedeck, I thought maybe we can repeat this. Also I just played funny little Talisman/Quarry/Caravan/City Deck
http://councilroom.com/game?game_id=game-20110630-224321-720e54a4.html
I won somehow think did not play optimal, and wondered what optimal would be. For instance, Woodcutter/Talisman > Silver/Talisman obviously, as there is no other terminal in my deck.

So here my XML for my first try, the first "Buy out Woodcutter if you have a lot of Talisman/Quarrys and this will cause you to win"-Clause somehow does not seem to work, it buys out GHs instead. Anyway, at least it beats BigMoney this time, but it's not tweaked much, anybody likes to challange it, probably even with a completly different strategy?
Code: [Select]
<player name="Talisman/Quarry/City">
   <buy name="Woodcutter">
      <condition>
         <left type="countVP"/>
         <operator type="greaterThan" />
         <right type="countMAXOpponentVP"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Talisman"/>
         <operator type="greaterThan" />
         <right type="countCardsInSupply" attribute="Woodcutter"/>
         <extra_operation type="divideBy" attribute="3.0" />
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Quarry"/>
         <operator type="greaterOrEqualThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="City"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Caravan"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Colony"/>
   <buy name="City"/>
   <buy name="Talisman">
      <condition>
         <left type="countCardsInDeck" attribute="Talisman"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="3.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Talisman"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Talisman">
      <condition>
         <left type="countCardsInDeck" attribute="Talisman"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Talisman"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
   </buy>
   <buy name="Quarry">
      <condition>
         <left type="countCardsInDeck" attribute="Quarry"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Talisman"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Caravan"/>
   <buy name="Woodcutter">
      <condition>
         <left type="countCardsInDeck" attribute="Woodcutter"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Great_Hall"/>
</player>
« Last Edit: July 01, 2011, 08:02:11 am by DStu »
Logged

Geronimoo

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1046
  • Respect: +838
    • View Profile
    • Geronimoo's Dominion Simulator
Re: Simulating Challange #1
« Reply #1 on: July 01, 2011, 07:59:45 am »
0

Careful, Dstu's code has a [\code] tag at the end that must be deleted when copied into the VXML (or you get an error)
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1487
    • View Profile
Re: Simulating Challange #1
« Reply #2 on: July 01, 2011, 08:02:32 am »
0

Careful, Dstu's code has a [\code] tag at the end that must be deleted when copied into the VXML (or you get an error)

... or in his post. Is deleted, Thanks
Logged

Geronimoo

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1046
  • Respect: +838
    • View Profile
    • Geronimoo's Dominion Simulator
Re: Simulating Challange #1
« Reply #3 on: July 01, 2011, 08:39:17 am »
0

I crushed your bot 76-to-22  8) :

Code: [Select]
<player name="Sim Challenge #1 Geronimoo">
   <buy name="Colony"/>
   <buy name="Talisman">
      <condition>
         <left type="countCardsInDeck" attribute="Talisman"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Quarry">
      <condition>
         <left type="countCardsInDeck" attribute="Quarry"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="countCardsInDeck" attribute="Caravan"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="City">
      <condition>
         <left type="countCardsInSupply" attribute="City"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="10.0"/>
      </condition>
   </buy>
   <buy name="Woodcutter">
      <condition>
         <left type="countCardsInDeck" attribute="Woodcutter"/>
         <operator type="smallerThan" />
         <right type="countCardsInDeck" attribute="City"/>
         <extra_operation type="minus" attribute="3.0" />
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Woodcutter"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="3.0"/>
      </condition>
   </buy>
   <buy name="Caravan"/>
   <buy name="Lookout">
      <condition>
         <left type="countCardsInDeck" attribute="Lookout"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Woodcutter">
      <condition>
         <left type="countCardsInDeck" attribute="Woodcutter"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="City"/>
   <buy name="Woodcutter">
      <condition>
         <left type="countVP"/>
         <operator type="greaterThan" />
         <right type="countMAXOpponentVP"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Woodcutter"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Talisman"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Quarry"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="City"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
   </buy>
   <buy name="Province"/>
   <buy name="Great_Hall"/>
</player>

Lookout is the key and buying less Talismans (Talismen?). I copied your "buy all the Woodcutters to end the game when ahead"-strategy.
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1487
    • View Profile
Re: Simulating Challange #1
« Reply #4 on: July 01, 2011, 08:49:50 am »
0

I crushed your bot 76-to-22  8) :
Nice.

Quote
I copied your "buy all the Woodcutters to end the game when ahead"-strategy.
And it works? In my N=5 test of individual games it never buyed Woodcutters, but I though the conditions are satisfied.

"Opponent's Max VP" are really the VP the opponent has at the moment? I don't really understand the "Max" there...
Edit: OK, is probably the max of all opponents. Two much 2-player games somehow makes blind for the obvious...
« Last Edit: July 01, 2011, 08:52:21 am by DStu »
Logged

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1487
    • View Profile
Re: Simulating Challange #1
« Reply #5 on: July 01, 2011, 09:01:43 am »
0

Code: [Select]
<player name="Sim Challange #1 DStu.2">
   <buy name="Woodcutter">
      <condition>
         <left type="countVP"/>
         <operator type="greaterThan" />
         <right type="countMAXOpponentVP"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Talisman"/>
         <operator type="greaterThan" />
         <right type="countCardsInSupply" attribute="Woodcutter"/>
         <extra_operation type="divideBy" attribute="3.0" />
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Quarry"/>
         <operator type="greaterOrEqualThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="City"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Caravan"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Colony"/>
   <buy name="City"/>
   <buy name="Quarry">
      <condition>
         <left type="countCardsInDeck" attribute="Quarry"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Talisman"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Caravan"/>
   <buy name="Woodcutter">
      <condition>
         <left type="countCardsInDeck" attribute="Woodcutter"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Great_Hall"/>
</player>
My original with no Talisman at all. 54:45. Prob Lookout will improve, but it's your turn :)
Logged

Geronimoo

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1046
  • Respect: +838
    • View Profile
    • Geronimoo's Dominion Simulator
Re: Simulating Challange #1
« Reply #6 on: July 01, 2011, 09:04:14 am »
0

Opponent Max VP is indeed the max VP of all opponents. I changed your "buy out all the Woodcutters" to:

when ahead in points, Caravans and Cities gone and having played Woodcutter, Talisman, Quarry and a few Cities buy out the Woodcutters

It's not foolproof, but it's simpler and works in most situations.
Logged

WanderingWinder

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5275
  • ...doesn't really matter to me
  • Respect: +4364
    • View Profile
    • WanderingWinder YouTube Page
Re: Simulating Challange #1
« Reply #7 on: July 01, 2011, 09:13:32 am »
0

Love the idea. Now to see if I can beat Geronimoo....

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1487
    • View Profile
Re: Simulating Challange #1
« Reply #8 on: July 01, 2011, 09:28:19 am »
0

Love the idea. Now to see if I can beat Geronimoo....

You have to beat my second one at the moment...
Logged

Geronimoo

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1046
  • Respect: +838
    • View Profile
    • Geronimoo's Dominion Simulator
Re: Simulating Challange #1
« Reply #9 on: July 01, 2011, 09:35:23 am »
0

Not anymore  ;D Beat this (74-22 against DStu's latest):
Code: [Select]
<player name="Sim Challange #1 Geronimoo V2">
   <buy name="Colony"/>
   <buy name="Province"/>
   <buy name="City"/>
   <buy name="Quarry">
      <condition>
         <left type="countCardsInDeck" attribute="Quarry"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Caravan">
      <condition>
         <left type="countCardsInSupply" attribute="Caravan"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
   </buy>
   <buy name="Woodcutter">
      <condition>
         <left type="countCardsInDeck" attribute="Woodcutter"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Great_Hall"/>
</player>
Logged

WanderingWinder

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5275
  • ...doesn't really matter to me
  • Respect: +4364
    • View Profile
    • WanderingWinder YouTube Page
Re: Simulating Challange #1
« Reply #10 on: July 01, 2011, 09:59:40 am »
0

Okay, every time I go to post, you guys have beat it first. Not this time!
Code: [Select]
<player name="SimChal1WW2">
   <<player name="SimChal1WW3">
   <buy name="Colony">
      <condition>
         <left type="countAvailableMoney"/>
         <operator type="smallerOrEqualThan" />
         <right type="constant" attribute="15.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Woodcutter"/>
         <operator type="greaterOrEqualThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
   </buy>
   <buy name="Colony">
      <condition>
         <left type="countAvailableMoney"/>
         <operator type="greaterOrEqualThan" />
         <right type="constant" attribute="19.0"/>
      </condition>
      <condition>
         <left type="countCardsInPlay" attribute="Woodcutter"/>
         <operator type="greaterOrEqualThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
   </buy>
   <buy name="Province"/>
   <buy name="City">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Colony"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Quarry">
      <condition>
         <left type="countCardsInDeck" attribute="Quarry"/>
         <operator type="smallerThan" />
         <right type="constant" attribute="2.0"/>
      </condition>
   </buy>
   <buy name="Caravan">
      <condition>
         <left type="countCardsInSupply" attribute="Caravan"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="1.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Colony"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Woodcutter">
      <condition>
         <left type="countCardsInDeck" attribute="Woodcutter"/>
         <operator type="smallerOrEqualThan" />
         <right type="countCardsInDeck" attribute="City"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Colony"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Great_Hall">
      <condition>
         <left type="countCardsInSupply" attribute="Province"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
      <condition>
         <left type="countCardsInSupply" attribute="Colony"/>
         <operator type="greaterThan" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Duchy"/>
   <buy name="Estate"/>
   <buy name="Great_Hall"/>
</player>


Wins 56/42 against Geronimoo's latest. Main differences are that it goes for a couple more Woodcutters, and once the game's ending on Colonies or provinces, it sops up the most VP possible.
It also goes for a double Province over a single colony, but I'm not sure that that makes much difference.

WanderingWinder

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5275
  • ...doesn't really matter to me
  • Respect: +4364
    • View Profile
    • WanderingWinder YouTube Page
Re: Simulating Challange #1
« Reply #11 on: July 01, 2011, 10:01:38 am »
0

Also I wanted to mention that this is probably not the greatest board for the sim, as even though there aren't really any tough play decisions (deck cycling obviously still an issue), judging how close the game is to ending, piles are to running out, whether you can three-pile and win, are all things that human players can and need to do on this board, and the simulator has a tough time judging.

DStu

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2627
  • Respect: +1487
    • View Profile
Re: Simulating Challange #1
« Reply #12 on: July 01, 2011, 11:08:32 am »
0

Also I wanted to mention that this is probably not the greatest board for the sim, as even though there aren't really any tough play decisions (deck cycling obviously still an issue), judging how close the game is to ending, piles are to running out, whether you can three-pile and win, are all things that human players can and need to do on this board, and the simulator has a tough time judging.

I thought that makes it a extremly good board to simulate, as it's more or less on the boarder of what the simulator can do.

You are right with three-pile ending, that is the second thing I would like to ask the simulator for the buy decision: a) #Buys. b) #empty piles.
Is there any chance that you can add these two in the simulator Geronimoo?
Logged
Pages: [1]
 

Page created in 0.106 seconds with 20 queries.