Skip to content

Both C++ and Python implementation of games necessary for some algorithms? #975

Answered by jblespiau
regenbogenfrosch asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

games written in C++ are exposed to Python via Pybind11, so they can be used from Python without having to reimplement them.

This is documented here:

It's also possible to add additional methods to a specific game, see https://github.com/deepmind/open_spiel/blob/master/open_spiel/python/pybind11/games_chess.cc for one example of additional methods on a game, which is called in https://github.com/deepmind/open_spiel/blob/master/open_spiel/python/pybind11/pyspiel.cc

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lanctot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants