GithubHelp home page GithubHelp logo

Comments (2)

citiral avatar citiral commented on May 18, 2024

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.

AzGhort avatar AzGhort commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.