Dominion Strategy Forum

Dominion => Simulation => Topic started by: DStu on April 16, 2012, 11:00:14 am

Title: Develop @ Geronimoo's sim
Post by: DStu on April 16, 2012, 11:00:14 am
Why isn't it gaining Silver?

Code: [Select]
<player name="Develop wtf?"
 author="DStu"
 description="No description available">
 <type name="Bot"/>
 <type name="Province"/>
 <type name="UserCreated"/>
 <type name="TwoPlayer"/>
   <buy name="Province"/>
   <buy name="Bank">
      <condition>
         <left type="isActionPhase"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Gold"/>
   <buy name="Wharf"/>
   <buy name="Develop">
      <condition>
         <left type="countCardsInDeck" attribute="Develop"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
   <buy name="Silver"/>
   <buy name="Cellar">
      <condition>
         <left type="countCardsInDeck" attribute="Cellar"/>
         <operator type="equalTo" />
         <right type="constant" attribute="0.0"/>
      </condition>
   </buy>
</player>

Code: [Select]
*** Develop wtf?(Plr 2)'s turn 5 ***
   Develop wtf?(Plr 2)'s cards in Hand: [Copper, Copper, Develop, Silver, Estate]
   Develop wtf?(Plr 2) resolves duration effect from Wharf
   Develop wtf?(Plr 2) gets +1 buys
   Develop wtf?(Plr 2) draws 2 cards
   Develop wtf?(Plr 2)'s cards in Hand: [Copper, Copper, Develop, Silver, Estate, Copper, Estate]
   Develop wtf?(Plr 2) plays Develop
   ... Develop wtf?(Plr 2) trashes a Estate
   ... Develop wtf?(Plr 2) puts Masquerade on top of the deck    <<<<<<<<<<<<<<<<<<<
   Develop wtf?(Plr 2) plays 3 Coppers
   Develop wtf?(Plr 2) plays 1 Silver
   Develop wtf?(Plr 2) has $5 to spend and 2 buys
   Develop wtf?(Plr 2) buys a Wharf
   Develop wtf?(Plr 2) buys NOTHING!
   Develop wtf?(Plr 2) draws 5 cards
   Develop wtf?(Plr 2)'s cards in Hand: [Masquerade, Cellar, Copper, Estate, Copper]
Title: Re: Develop @ Geronimoo's sim
Post by: DG on April 16, 2012, 11:30:35 am
I think we'll find a few of these over the next week.

cards in Hand: Menagerie, Ironworks, Menagerie, Chapel, Menagerie
plays Chapel
has $0 to spend and 1 buy
buys NOTHING!

Maybe I shouldn't follow up on that idea. I also tried an apprentice/horse traders/tunnel combo that failed utterly when the apprentice kept trashing the tunnel and horse traders :) .
Title: Re: Develop @ Geronimoo's sim
Post by: DStu on April 16, 2012, 11:40:35 am
The point is I really expected it is not easy to build an bot with Develop. But why does it gain a card which is not in the buyrules for $3, when there is Silver in buy-rules?
Title: Re: Develop @ Geronimoo's sim
Post by: Geronimoo on April 16, 2012, 01:59:58 pm
Develop is bugged. It will gain the "best card in the supply according to trash priority" so it won't even look in your buy rules.

@DG: the Menagerie bug doesn't surprise me a lot. I added logic to the Menagerie code so it either gets played as fast as possible for 3 cards or waits until it can draw 3 cards. There's probably some flaw in there.