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

Convert Gambit bindings to Python 3, make conda package #218

Open
jstac opened this issue Jan 11, 2016 · 4 comments
Open

Convert Gambit bindings to Python 3, make conda package #218

jstac opened this issue Jan 11, 2016 · 4 comments

Comments

@jstac
Copy link
Contributor

jstac commented Jan 11, 2016

Gambit is a useful piece of software for computing Nash equilibria in games, among other things.

http://www.gambit-project.org/gambit14/index.html#

The core routines are written in C. There are Python bindings but they are in Python 2 and the developer has no plans to convert to Python 3. If someone is interested it would valuable to convert to Python 3 and build a conda package. A start would be to run the bindings through the 2to3 conversion tool and see how much manual work is left. If not much I think this is worth doing.

@oyamad
Copy link
Member

oyamad commented Jan 12, 2016

I have some code on game theory (mostly for simulation of learning/evolutionary dynamics models, and not about computation of Nash equilibria) to submit to QE.py (the base code is ready, while applications are not yet): https://github.com/oyamad/game_theory_models

(I also have a preliminary version in Julia.)

There I have a certain data structure to represent a game, and would be interested in building a wrapper/binding in Python (and Julia) that converts my data structure and passes it to Gambit to return Nash equilibria of the game.

(Just to remind ourselves, Gambit is GPL licensed.)

@jstac
Copy link
Contributor Author

jstac commented Jan 12, 2016

The game theory code looks very promising.

I didn't notice the GPL license. They might be willing to change the license if we are prepared to update the Python bindings to Python 3 and build a conda package. I know Andy McLennan well and he is very reasonable.

@sglyon
Copy link
Member

sglyon commented Jan 12, 2016

The GPL wouldn't be an issue for us in quantecon though.

The wrapper would probably need to be gpl, but we would be able to call it from a BSD qe.py

@oyamad
Copy link
Member

oyamad commented Jan 13, 2016

I opened a PR #220, just for the base classes this time.

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

No branches or pull requests

4 participants