Skip to content
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

About how to load subgame of Libratus #1168

Open
Atan03 opened this issue Jan 18, 2024 · 2 comments
Open

About how to load subgame of Libratus #1168

Atan03 opened this issue Jan 18, 2024 · 2 comments

Comments

@Atan03
Copy link

Atan03 commented Jan 18, 2024

Hi, I am currently working on experiments for my algorithm and intend to test it on the subgame of Libratus mentioned in 1. I have noticed that the universal_poker has some interfaces related to the subgame.txt definition, but I am having trouble figuring out how to load it using the pyspiel module. Could you provide some instructions on how to use the pyspiel module, perhaps something like pyspiel.load_game("universal_poker(...)")?
I apologize for not thoroughly reading the entire C++ source code; your assistance would be greatly appreciated!

Footnotes

  1. Solving Imperfect-Information Games via Discounted Regret Minimization

@lanctot
Copy link
Collaborator

lanctot commented Jan 19, 2024

Hi @Atan03,

Ok so there are some examples of how to use those subgames here:

My guess is this was never exposed to Python.. yeah doesn't look like it. You'd just need to expose those functions under python/pybind11. There are docs explaining how to do that here: https://github.com/google-deepmind/open_spiel/blob/master/docs/developer_guide.md#adding-game-specific-functionality

I've not used this much and hasn't been used in a while so maybe @michalsustr can follow up if you have more specific questions about that functionality.

@Atan03
Copy link
Author

Atan03 commented Jan 19, 2024

Your response has been really helpful! This is something I haven't tried before, and I will follow your guidance to give it a shot. I'll provide feedback here once I have results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants