-
Notifications
You must be signed in to change notification settings - Fork 100
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
How to simulate the game board state, and run for analyze #169
Comments
I have written a sample code https://github.com/ChuckForkHearthBuddy/SabberStone/blob/chuck-master/SabberStoneCoreTest/src/ChuckTest.cs You can get the game record from https://hsreplay.net/api/v1/games/EPYWPdrBBaELpVVq3aiBEc/ |
There are 2 possibilities to achieve the same setup as your reference game. One is replaying the refrerence game and correcting random events, the other one is just recreating the game state, which can be a little bit tricky.
https://github.com/HearthSim/SabberStone/tree/master/core-extensions/SabberStoneCoreAi But you could just feed the previously created game to that simpulator. |
One turn test AI, it's enough. |
@darkfriend77 Here is an example about how to simulate the current board state.
|
Currently, I want to simulate this game in 5th turn.
https://hsreplay.net/replay/EPYWPdrBBaELpVVq3aiBEc#turn=5b
After check the sample code in SabberStone\core-extensions\SabberStoneCoreConsole\src\Program.cs
My problem is:
1.How can I set the cards in hand for each player
2.How can I set the minions already on board for each player
3.How can I start the analyze when I finish the above two steps
I have checked the start game method, it contains the following code
Actually I want to simulate the 5th turn when I have only one mana left.
I can summon a totem first, then play the sea giant. Instead of playing the sea giant directly.
I want to check if SabberStone intelligent enough to give the correct move for the above game state.
This is one turn analyze, actually I only want to set the minions for each player and the mana left for me and the cards on my hand. Maybe the hero skill should be calculated.
The text was updated successfully, but these errors were encountered: