Comments (2)
Hey! I'm not the developer of Sabberstone (That's @darkfriend77), so I dont know much about the inner workings, but i've been working with @darkfriend77 to connect SabberStone with Stove, so I think I can answer most of your questions about how to interface with it.
If you hit me up on Discord in HearthSim we can talk. I'm online most of the time (and from Belgium so same time zone).
But in short, if you take a look at Program.RandomGames()
in SabberStoneCoreAI, that tells most of the story of how to interface with the simulator. The core game loop exists out of the simulator giving a list of all possible options the current player can do, using game.CurrentPlayer.Options()
.
These options are all specialisations of PlayerTask
, and most are fairly explanatory. You have a ChooseTask
for mulligan and discover, an EndTurnTask
, A HeroAttackTask
,..
It's also worth of note that each task in that list represents a single action, and not a group of actions. By this I mean that if you have a minion that has 4 possible targets to attack, there will be 4 seperate MinionAttackTasks
in that list. Same goes for the mulligan, there isn't 1 ChooseTask
, but there is one for each possible combinations of cards to mulligan.
from sabberstone.
Hi, thanks for your super-fast reply... The Program.RandomGames() in SabberStoneCoreAI is exactly what I needed for the beginning, thanks :)
I am on Discord as well, so thanks again, I will definitely contact you or darkfriend77 for some support when needed!
from sabberstone.
Related Issues (20)
- Build issue HOT 3
- bug of SabberStoneGui HOT 2
- Can't run a game on GUI. HOT 1
- Unix - antlr4 doesn't suceed to parse the HSGrammar.g4
- Molten Blade cost doesn't change upon transformation HOT 3
- I don't know about running code with game HOT 1
- Bug in playing cards when board is full (CoreAI) HOT 12
- Upcoming mechanic changes to Multi-Target Cards HOT 1
- Some wiki pages are not accessible HOT 5
- How to simulate the game board state, and run for analyze HOT 4
- Could not load file or assembly System.Runtime.CompilerServices.Unsafe HOT 3
- Load the card with specific language HOT 6
- Add global exception handler for SabberStoneGui HOT 1
- Game Point of View of Player HOT 3
- How to use Unity3D client? HOT 1
- Casting error from Enchantment to ICharacter. HOT 5
- You only use ATK.Effect when tag == GameTag.ATK, what is the reason? HOT 5
- Cardset for the new Classic mode of Hearthstone HOT 5
- Some cards from EXPERT1 (classic) are not implemented? HOT 4
- Can't run SabberStoneConsole, dotnet.exe error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sabberstone.