Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added soothsayer #81

Merged
merged 2 commits into from Jun 5, 2014
Merged

Added soothsayer #81

merged 2 commits into from Jun 5, 2014

Conversation

amalloy
Copy link
Contributor

@amalloy amalloy commented Jun 2, 2014

I'm not entirely sure whether you want a pull request for gh-pages as well, or if you just want to re-deploy that yourself, but it should be the same either way, right?

Anyway, I just wanted to test a strategy involving Soothsayer, and since it wasn't implemented I added it. Works fine at http://amalloy.github.io/dominiate/play, including the "don't draw if you didn't gain a curse". It should work with Trader also (ie, if you gain a Silver instead, you don't draw)..

if state.countInSupply('Curse') < cursesRemaining # they gained a curse
state.drawCards(opp, 1)

ai_playValue: (state, my) -> 290 # same as Mountebank, seems reasonable?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try to make all the ai_playValues unique, so this should be either slightly more or less than Mountebank. If an AI has both Mountebank and Soothsayer in hand, and only one action, which should it play?

I'd guess it should choose Mountebank because it has a benefit this turn. Of course this really depends on whether it wants +2 coins this turn, but checking that is slow.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had no idea, really. Mountebank is generally a better card than Soothsayer, but if you make the AI prefer Mountebank that exaggerates the difference. I actually added this so that I could compare Mountebank and Soothsayer, so I didn't want to introduce a false preference. So, maybe just use Qvist's rankings? It should be slightly more valuable than Haggler, but substantially less valuable than Margrave.

So, 200? But 200 is for playing a non-terminal Smithy, which should probably be preferred over a Soothsayer if you have actions to spare. So 199, I suppose. I'll make that change.

@amalloy
Copy link
Contributor Author

amalloy commented Jun 2, 2014

Changed Soothsayer's play value to be unique.

rspeer pushed a commit that referenced this pull request Jun 5, 2014
@rspeer rspeer merged commit 92e065d into rspeer:master Jun 5, 2014
@amalloy
Copy link
Contributor Author

amalloy commented Jun 5, 2014

Can you deploy this as well? Soothsayer doesn't seem to work yet at http://rspeer.github.io/dominiate/play.html

@rspeer
Copy link
Owner

rspeer commented Oct 23, 2014

Making a note to myself to check whether this got deployed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants