Repository navigation
Gambit v17.0.0-beta.4
Pre-release
Pre-release
·
3 commits
to master
since this release
Added
ExtensiveGame.to_gtdrawandread_gtdrawfor writing and reading, respectively, extensive games as
drawings in gtdraw's .ef format.draw(onExtensiveGame,StrategicGameandActionGraphGame) draws a game in a Jupyter notebook usinggtdraw, which is now the optional
extrapygambit[draw](requires gtdraw 0.13.0 or later and a LaTeX installation). The tutorials
that draw games use it, and still run without it (the drawing cells print a note); the
testanddocextras include it.
Changed
- Create separate game-representation classes
ExtensiveGame,StrategicGame,ActionGraphGame,
andBayesianActionGraphGameas subclasses ofGame, and clarify the contract as to what
each provides. - Nontrivial queries on games are now represented as functions (generally prefixed by
get_
where appropriate). - Numbers stored in a game are returned consistently as
Rational.Rationalstill retains the
original text representation of the value, so aRationalmay show a decimal value in its
__repr__. Previouslyget_outcome_payoffsandget_action_probsreturnedDecimalfor a
number entered as a decimal, which meant these had unpredictable return types, and arithmetic
on decimal and rational is not defined. - In the GUI, the game properties, "Edit move" and "Edit strategies" dialogs now apply their edits
as a single change, which one Undo reverses. logit_estimatewith aMixedBehaviorProfilenow rejects a game with imperfect recall, raising the
same error aslogit_solve_branch.logit_solve_lambdaon an extensive game now rejects a game with imperfect recall, as
logit_solve_branchdoes.
Removed
StrategicGame.to_efgandActionGraphGame.to_efg, which raisedOSError("Undefined operation on game")
on every game, are removed. Only anExtensiveGamecan be written as an .efg file.
Fixed
- The
reprof a game now names its concrete class (StrategicGame,ExtensiveGame,
ActionGraphGame,BayesianActionGraphGame) rather thanGame, and thereprof an untitled game
now ends with its closing parenthesis. - Fixed memory corruption in
Game.delete_parent(GameTreeRep::DeleteParent), which wrote to the
removed parent node after it had been freed.