Skip to content

Gambit v17.0.0-beta.4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 14:38
· 3 commits to master since this release

Added

  • ExtensiveGame.to_gtdraw and read_gtdraw for writing and reading, respectively, extensive games as
    drawings in gtdraw's .ef format.
  • draw (on ExtensiveGame, StrategicGame and ActionGraphGame) draws a game in a Jupyter notebook using gtdraw, which is now the optional
    extra pygambit[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
    test and doc extras include it.

Changed

  • Create separate game-representation classes ExtensiveGame, StrategicGame, ActionGraphGame,
    and BayesianActionGraphGame as subclasses of Game, 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. Rational still retains the
    original text representation of the value, so a Rational may show a decimal value in its
    __repr__. Previously get_outcome_payoffs and get_action_probs returned Decimal for 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_estimate with a MixedBehaviorProfile now rejects a game with imperfect recall, raising the
    same error as logit_solve_branch.
  • logit_solve_lambda on an extensive game now rejects a game with imperfect recall, as
    logit_solve_branch does.

Removed

  • StrategicGame.to_efg and ActionGraphGame.to_efg, which raised OSError ("Undefined operation on game")
    on every game, are removed. Only an ExtensiveGame can be written as an .efg file.

Fixed

  • The repr of a game now names its concrete class (StrategicGame, ExtensiveGame,
    ActionGraphGame, BayesianActionGraphGame) rather than Game, and the repr of 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.