-
Notifications
You must be signed in to change notification settings - Fork 13
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
Usage example #9
Comments
I had a hard time to figure out how it works, so I can try to show you how I used it to parse the log when playing Battlegrounds. You can also check how the tests work in the test directory, it can be a good way to start with. You first need to create a Parser and choose an Exporter to process the entities of the log. You can also define your own exporter, see export.py.
And to get the current board's of the two players:
You can then explore the attributes of the "export" object and the "game" object more precisely to fully understand how it works. |
@samuel-chp I'm confused as to where the 'game' in player1 = game.players[0] comes from. I thought it would be the 'Game' from hearthstone.entities but that doesn't have a 'players' attribute. |
Could you provide an example of using this package?
The text was updated successfully, but these errors were encountered: