Dominion Strategy Forum

Dominion => Simulation => Topic started by: Chris on March 30, 2015, 12:30:25 am

Title: DominionSim - Now with Intrigue
Post by: Chris on March 30, 2015, 12:30:25 am
All righty, finally got Masquerade implemented and now all Intrigue cards are baked into DominionSim! Bridge is probably my new favorite card for exploring what's possible in a single turn. Thanks for all the feedback so far. Please continue to post suggestions and issues here or on GitHub. More tools, improvements and Seaside coming soon! Stay tuned.

Additionally:
- Added DrawPile and AllOpponentsCards as a location that works in all functions. Thanks for the feedback!
- Added some more built in brains ported from Geronimoo's simulator.
- Better cancelling during analysis or playing a complex turn.
- Performance improvements on Cellar, ThroneRoom and SecretChamber.

Get it here: https://github.com/ChrisDS1/DominionSim/releases

Masquerade in a big game:
(http://i.imgur.com/4zt2Ezj.png)

Solve which choices to make in cards like Pawn, Minion, Steward and Mining Village:
(http://i.imgur.com/GYgLOaO.png)

Nobles, GreatHall, Harem, Upgrade, Bridge:
(http://i.imgur.com/dMAGkaT.png)


Title: Re: DominionSim - Now with Intrigue
Post by: werothegreat on March 30, 2015, 12:41:55 am
How do you have all the time to do all of this stuff?  And well done, by the way.  Are you going to keep making your way through the expansions?
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on March 30, 2015, 01:29:12 am
Time flies when you're having fun. :)  Certainly would like to make it through all of them. Adding cards isn't that hard, unit tests for cards takes a while. I really want to get to more of the tools to explore and analyze games done too, so I'm staging things and not just burning through all expansions at once.
Title: Re: DominionSim - Now with Intrigue
Post by: Zappie on March 30, 2015, 05:43:20 am
But in the picture you post, why does spythief pass a silver if also has a curse in hand?
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on March 30, 2015, 10:20:17 am
The output on the right is scrolled to the middle of the game, where the state on the left is the end of the game. If you setup a turn a from scratch, it will prefer to pass Curses and cards it doesn't care about.

When a brain is asked to pass a card, it will iterate what cards to pass and the resulting turn after that. So in a tough choice case like "ThroneRoom Remodel Gold Gold Gold", it will choose Gold because it sees it can gain 2 Provinces keeping the other cards.

(http://i.imgur.com/KwbZZAA.png)

By the way, there's an option to show Debug Output which will show some of the internal iteration it's doing. (Eventually want this to provide good data for debugging the brain code):

(http://i.imgur.com/4kf2gKE.png)
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on March 30, 2015, 11:21:50 am
Not a promise to do this always in the future as cards come out, but some of these are easy so I added Magpie.

https://github.com/ChrisDS1/DominionSim/releases

(http://i.imgur.com/TngIyfZ.png)

Title: Re: DominionSim - Now with Intrigue
Post by: Chris on March 30, 2015, 11:08:45 pm
Also got to adding Storyteller and Bazaar

https://github.com/ChrisDS1/DominionSim/releases

(http://i.imgur.com/1I3P69w.png)
Title: Re: DominionSim - Now with Intrigue
Post by: werothegreat on March 30, 2015, 11:20:24 pm
At first I was surprised you didn't add Lost City, then I remembered it has the whole on-gain thing going on, which you probably won't want to get to until you get to Hinterlands.

EDIT: Could you possibly add turn numbers?  One of the benefits of simulation is seeing at what turn number a strategy hits 4 Provinces.
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on March 30, 2015, 11:44:43 pm
Lost City has an "on gain" requirement that no other card has in the engine yet.  Definitely want to get there.

I can add turn numbers. The "4 Provinces" I want to answer in a different way though: a tool which takes an equation, like CountOf(Provinces) and returns the average value during analysis. Or plots it per turn. This would allow a lot of flexibility for doing analysis and building a "dashboard" for analyzing a game.

Title: Re: DominionSim - Now with Intrigue
Post by: werothegreat on April 11, 2015, 11:59:43 pm
Could you possibly add Soothsayer ahead of schedule?  I like your interface, and I was interested in tinkering around with it.
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on April 13, 2015, 10:41:55 pm
Sure, that one's easy. Here you go:

https://github.com/ChrisDS1/DominionSim/releases
Title: Re: DominionSim - Now with Intrigue
Post by: werothegreat on April 16, 2015, 10:12:22 pm
Sure, that one's easy. Here you go:

https://github.com/ChrisDS1/DominionSim/releases

Thanks!  As you may have seen, I've been making use of that in a General Dominion Discussion thread.  I'm assuming you're working on Durations at the moment?
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on April 17, 2015, 01:12:07 am
Yes. They're a pain in the butt. :)
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on April 17, 2015, 10:35:12 am
What are the issues you're having getting it to buy cards the way you do?
Title: Re: DominionSim - Now with Intrigue
Post by: werothegreat on April 17, 2015, 10:37:34 am
What are the issues you're having getting it to buy cards the way you do?

Nothing with the simulation itself, just trying to actually put into code my rather complicated priorities at any given turn.
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on May 13, 2015, 11:48:39 pm
I added most of the Seaside cards:

https://github.com/ChrisDS1/DominionSim/releases/

After playing Adventures and looking at other cards not yet implemented, I think there's some refactoring that needs to happen to better support the more complicated features of the game. So next release is going to focus on getting the hardest cards done (like Band of Misfits, Prince, others), finalizing the file format the best I can and getting the source in shape that I can release it.
Title: Re: DominionSim - Now with Intrigue
Post by: Burning Skull on May 14, 2015, 05:28:07 am
Thanks for doing the great job!

One little suggestion on the UI: maybe you should stack items in the trash? (like Curse x5 Copper x8 etc)
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on May 16, 2015, 12:17:10 am
Yup, same with the Deck since it's really a probability draw to the player.

Lots of UI and tool ideas left. I've found though that some cards require dramatic changes to the internals and the UI. For example: how do you represent Band of Misfits as a played duration? It has to be both in the list. So I want to get the hardest stuff in and then iterate more on the editor.
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on May 30, 2015, 06:46:34 pm
Looks like I didn't actually upload 0.2.4.0, it should be there now :)
Title: Re: DominionSim - Now with Intrigue
Post by: werothegreat on October 08, 2015, 06:55:31 pm
So, are you still working on this?
Title: Re: DominionSim - Now with Intrigue
Post by: Chris on October 26, 2015, 08:13:28 pm
Yes!

(http://i.imgur.com/hs0dZHP.png)