Repository navigation
Releases
Releases · gambitproject/gambit
Gambit v17.0.0-beta.3
Changed
- Reverted the change in #1168 which applied strategic form (expected) payoffs to scaling regret, as this
scales very poorly. The regret bounds are now proportional to the range of payoffs in the representation
being used. - Clarified the interface to BAGGs to represent players and types clearly, the latter as information sets.
Previously these were mapped in agent form (so one type in the BAGG appeared as a player in pygambit).
Calculations are now supported using profiles correctly labeled as being behavior profiles, and
Nash solvers handle these correctly. There is no change in functionality; this is clarifying labeling
as the previous interface required calling code and users to understand the agent mapping which was implicit. nash.liap_agent_solveandgambit-liap -Anow minimise the Lyapunov function of the agent normal form,
and accept a profile when the maximum, over information sets, of reach probability times regret is
withinmaxregret(scaled as before). Previously the function summed squared conditional regrets.
Fixed
- Corrected logic for distinguishing zero-probability information sets from ones with just very small
realisation probability; this was causing tracing to terminate early by accidentally creating an
incorrect jump in beliefs from the correct ones to uniform.
Gambit v17.0.0-beta.2
Added
- The "Open existing game" button on the GUI's welcome screen now has a dropdown listing the most
recently opened games. (#1108) - Details on bifurcations found and actions taken to resolve them (by perturbation) are now reported
bynash.logit_solve(and related functions) (#186) -D/--detailis now available on everygambit-*command-line tool that reports equilibria.- The command-line tools'
-Dreport for behavior profiles now includes the probability
distribution over full histories (discussion #1094)
Changed
- Python 3.10 is no longer supported; pygambit now requires Python 3.11 or later, and
Python 3.15 is supported. - Refined the perturbation approach in
path.cc(logit and hp solvers) to better handle paths on games
with bifurcations. (#492) - Nash solver algorithms now return a method-specific
Resultclass, rather than a generic class,
with potentially richer information about the performance of the algorithm. - The command-line tools'
-D(detail) report for behavior profiles now identifies each node by its
History(the actions from the root, comma-joined). - The command-line tools'
-Dreport now identifies each player by their own label, rather than by
their position among the game's players. - Substantially faster computation of the agent logit QRE correspondence for extensive games,
and of payoffs, beliefs and regrets of mixed behavior profiles on large game trees. Path
following (logit and hp) also spends about half as long factorizing Jacobians. (#1162)
Fixed
maxregretis now scaled by the range of feasible expected payoffs, so the tolerance no longer
depends on whether a game is represented as a tree or as a table. (#1168)
Gambit v17.0.0-beta.1
Added
- Added
HistoryandHistoryTransition, formalizing a node's identity as the sequence of
actions taken from the root to reach it, with each step's acting player and
information-set/event context; aHistoryidentifies an information set or event via its
canonical (first-encountered) member. - Added
Selector,GroupedSelector, andH, a small expression language (H.path(...),
.by(...),.after(...),.plays,.filter(...),.with_recall(...), and similar) for
selecting histories/nodes in an extensive game; this is now how everyGamemethod that
queries or mutates the tree identifies its target(s). - Added
HistoryView, the read-only view of a history passed to filter callables (an
H-expression's own.filter/.bypredicate, orGame.behavior_support_profile's
actionscallback), exposing.actions,.members, and.last_action(player)without
exposing the underlying game or node. - Added the Herings-Peeters homotopy method to compute equilibria, as
hp_solveinpygambit
andgambit-hpas a command line tool; also available as a user-selectable method in
the graphical interface. - Added
Game.has_perfect_recall(player), andGameRep::HasPerfectRecall(const GamePlayer &)
in C++, reporting whether an individual player has perfect recall. (#1107) - Added
MixedBehaviorProfile.event_probs, returning the probability with which each of
the chance player's events is reached, as anEventProbVector. (#1109) - Added
Game.get_outcomes(), returning a materialized list of outcome labels, replacing
Game.outcomes. - Added
Game.get_outcome_payoffs(label), returning the payoff to each player at the outcome
labeledlabel. - Added
Game.set_outcome_payoffs(label, payoffs), setting the payoffs at the outcome labeled
label;payoffsmust be a complete mapping over the game's players, as with
Game.make_outcome. - Added
Game.relabel_outcomes(labels, strict=True), simultaneously reassigning the labels of
the game's outcomes, following the same pattern asGame.relabel_players/
Game.relabel_strategies. AddedGameRep::RelabelOutcomesin C++.
Changed
MixedBehaviorProfile.node_valuesis renamedhistory_values, andNodeValueVector/
NodeValuesVector/NodeIndexedVectorare renamedHistoryValueVector/HistoryValuesVector/
HistoryIndexedVector, matchingRealizProbVector/BeliefVector, its other
HistoryIndexedVectorsubclasses, which were always keyed byHistory.MixedBehaviorProfile.infoset_probsnow covers only the personal players' information sets,
asinfoset_valuesandinfoset_regrets; the chance player's events moved toevent_probs. (#1109)Game.make_outcomenow returnsNoneinstead of theOutcomecreated; use thelabel
already passed in, together withGame.get_outcome_payoffs/Game.relabel_outcomes, to refer
to it afterward.
Removed
Outcomehas been removed as a public-facing class in pygambit, followingAction,
Infoset,Player, andStrategy: no public method holds or returns a live handle
into a game's internal outcome list any longer.Game.outcomeshas been removed; use
Game.get_outcomes(),Game.get_outcome_payoffs(),Game.set_outcome_payoffs(), and
Game.relabel_outcomes()instead.- Removed
Nodeas a public-facing class. Every method that returned or accepted aNode
in earlier 17.0.0 pre-releases --Game.get_infosets,Game.get_events, and the
tree-querying/-mutation methods added since alpha.1 -- now returns/accepts aHistoryor
Selector/GroupedSelectorinstead (see Added, above). - Removed
InfosetandEvent, which alpha.3 (below) had turned into lazy, node-anchored
views; an information set or event is now identified purely by theHistoryof one of its
members. - Removed
Branch, added in alpha.3 (below) as a(node, label)pair replacingAction;
the equivalent is now aHistoryTransitionwithin aHistory. - Removed
Subgame.Game.subgamesandGame.minimal_subgameare renamed
Game.get_subgame_rootsandGame.get_minimal_subgame, and now return theHistoryof a
subgame's root rather than aSubgameobject. - Removed
Sequence. A player's sequence at an information set is now identified by the
Historyof one of the information set's members.
Fixed
GameTableRep's constructor (used byGame.from_arrays/Game.from_dict, which build a
non-sparse table with one outcome per contingency) gave every outcome the same empty label,
violating the invariant that every non-null outcome has a unique, nonempty label. Outcomes
are now labeled"1","2", and so on, following the existing convention for default
player/strategy labels.
Gambit v17.0.0-alpha.3
Added
- Added
Game.get_infosets(player), returning a materialized list of one representative
Nodeper information set belonging toplayer, replacingPlayer.infosets/Game.infosets.
playermust be a personal player; useGame.get_events()for the chance player's events. - Added
Game.get_events(), returning a materialized list of one representativeNodeper
chance event in the game. - Added
Event, the chance-event counterpart toInfoset: a lazy, node-anchored view of the
chance player's information partition. AddedNode.eventalongside the existing
Node.infoset, which is now specific to personal players' information sets; each is falsy
when it does not apply to a given node. - Added
Node.members, the set of nodes belonging to the same information set or event asNode,
equivalent toNode.infoset.members/Node.event.members, whichever applies. - Added
Node.actions, the labels of the actions available at the node's current information
set or event, whichever applies (equivalent toNode.infoset.actions/Node.event.actions). - Added
Node.action_probs, the probability of each action at the node's current chance event,
keyed by label. - Added
Branch, a(node, label)pair returned byNode.prior_action/Node.own_prior_action,
replacingAction. - Added
BehaviorSupportProfiletopygambit. - Added callback functions to Nash solvers, allowing calling code to take actions when an equilibrium
is found or another solver event is emitted. - Added
Game.make_outcome, which creates an outcome with the given payoffs and attaches it to a
set of nodes (extensive) or contingencies (strategic) in a single operation. (#1061) - Added
Game.make_outcome_null, which resets a set of nodes (extensive) or contingencies
(strategic) to the null outcome, removing the previously-attached outcome if this was its
last reference. (#1061) - Added
MixedStrategyProfile.as_floatandMixedBehaviorProfile.as_float, converting a
rational-precision profile to floating-point precision.liap_solve,liap_agent_solve,
logit_estimate,ipa_solve, andgnm_solvenow also accept a rational-precision profile
directly (as a starting point or perturbation vector), converting it internally.
(#721, #458) - Added
Game.get_outcome, which returns theOutcomeattached to a pure-strategy contingency
of a game in strategic (table) representation. - Added
Game.get_payoffs, which returns the payoff to each player at a pure-strategy
contingency, for a game in any representation. - Added
Game.get_strategies(player),Game.get_sequences(player),Game.get_min_payoff(player),
andGame.get_max_payoff(player), replacingPlayer.strategies/.sequences/.min_payoff/
.max_payoffnow thatPlayerhas been removed. - In the GUI, computed strategy and behaviour profiles can now be sorted by probability (#1077)
Changed
Infosetis now a lazy, node-anchored view (likeNode.player/Node.outcome), constructed
by anchoring on a representative member node rather than carrying independent identity, and is
now specific to personal players; seeEventfor the chance player.Infoset.is_chancehas
been removed, asInfosetis never chance; test truthiness ofNode.infoset/Node.event
instead.
Game.append_infoset,Game.insert_infoset,Game.set_move_actions,Game.set_event_actions,
Game.relabel_actions,Game.reveal, andGame.minimal_subgamenow identify an information
set or event via a memberNode(or its label) rather than anInfosetobject.Infoset.actions/Event.actions/Node.actionsnow return the plain labels (list[str]) of
the actions at the information set or event, rather thanActionobjects.Sequence.actionsnow returns atuple[str, ...]of labels rather thanActionobjects.Node.prior_action/Node.own_prior_actionnow return aBranch(a(node, label)pair)
rather than anAction.Game.behavior_support_profile'sactionsfilter callable is now called as
actions(node, action)(two positional arguments, wherenodeis a representative node of
the information set andactionis the action's label) rather than with a singleAction.Node.playernow returns the player's label (str), orNoneat a terminal node, directly
rather than a lazyNodePlayerproxy object.Infoset.player/Event.player/Sequence.player
now likewise return a label (str) rather than aPlayerobject.StrategySupport.player,BehaviorSupport.player,MixedStrategy.player, and
MixedBehavior.playernow return a label (str) rather than aPlayerobject.Game.playersnow iterates player labels (str) rather thanPlayerobjects; indexing by
label is no longer supported (a label is already in hand once iterated) -- useinto test
membership.Game.append_move,Game.insert_move,Game.reveal,Game.relabel_strategies, and
Game.set_strategiesnow takeplayeras a label (str) rather than accepting aPlayer
object.Game.strategy_support_profile'sstrategiesfilter callable'splayerargument is now a
label (str) rather than aPlayerobject.- Command-line tools are now implemented in
pygambitrather than C++-based compiled programs.
Thegambit-convertutility has been removed. - Refreshed GUI icons and standardised dialog layout and formatting
- Improved installers for Windows, and disk-image "installer" for MacOS
- Revised
StrategySupportProfileto expose a slimmer set of operations, and
implementStrategySupportas an immutable snapshot. - Absent outcomes are now represented by a per-game null outcome rather than by a null reference.
Two null outcomes always compare unequal (cf. missing values inpandas). Null outcomes do not appear when
iterating over a game's outcomes, and assigning a payoff to one raisesUndefinedOperationError. (#1061) Game.new_tableno longer creates an outcome for every contingency; a new strategic game has no outcomes,
and every contingency is initially null. Outcomes are created as they are needed;
games built byGame.from_arraysandGame.from_dictare unaffected. (#1061)- Tutorial notebooks that use
gtdrawto draw game trees now degrade gracefully if it isn't
installed: the drawing cells print a short note instead of raisingImportError, so the rest
of the tutorial (which doesn't otherwise depend ongtdraw) still runs.gtdrawdepends on a
LaTeX installation, so this lets the tutorials be run without that heavier local setup.
Removed
Game.add_outcome,Game.delete_outcome, andGame.set_outcomehave been removed; use
Game.make_outcome/Game.make_outcome_null, which create-and-attach or reset an outcome in
a single operation and never leave an unattached outcome in the game. (#1061)gtdrawis no longer part of thedocoptional-dependency group. Install it separately
(pip install gtdraw) to run tutorials locally or build the documentation.Game.contingenciesnow yields contingencies as a mapping from player label to strategy
label, rather than a list of per-player strategy indices.Game.strategy_support_profile'sstrategiesfilter callable is now called as
strategies(player, label)(two positional arguments) rather than with a singleStrategy.- Removed
Player. Players are now identified purely by label (str), as returned by iterating
Game.players.Player.strategies/.sequences/.min_payoff/.max_payoffare replaced by
Game.get_strategies/Game.get_sequences/Game.get_min_payoff/Game.get_max_payoff;
Player.numberhad no remaining use once labels are unambiguous (recover via
list(game.players).index(label)if truly needed);Player.is_chanceandGame.players.chance
are removed outright, with no replacement -- testNode.event/Node.infosettruthiness
instead.GamePlayerRepin the C++ core is unaffected by this change (a separate, later piece
of work). Game.get_behavior'splayerandstrategyparameters are now labels (str) rather than
accepting aPlayer/Strategyobject;StrategyBehavior.player/.strategynow return
labels rather thanPlayer/Strategyobjects.- Removed
Game.__getitem__, replaced byGame.get_outcome/Game.get_payoffs. - Removed
Game.strategies; iterateGame.playersand each player'sstrategiesinstead. - Removed
Strategy.action; useGame.get_behavior(player, strategy)[infoset](or.get),
already the documented fuller form of the same lookup. - Removed
Strategy. Strategies are now identified purely by label (str), as returned by
Player.strategies; aStrategyobject carried no information a label didn't already
carry, now that strategy labels are unique within a player.GameStrategyRepin the C++
core is unaffected by this change (a separate, later piece of work). - Removed
Player.infosetsandGame.infosets; useGame.get_infosets(player)instead. - Removed
Game.actions/Player.actions; the total count/collection of actions across a
game or player is now most directly available by iteratingGame.get_infosets(player)and
each node'sNode.actions. - Removed
Action. Actions are now identified purely by label (str), as returned by
Node.actions/Infoset.actions/Event.actions; useNode.action_probsfor chance-event
action probabilities, previouslyAction.prob, andNode.prior_action/Node.own_prior_action's
Branchin place of anActionreached via a node.StrategyBehavior's prescribed actions
are likewise now labels rather thanActionobjects. Also removed
Infoset.own_prior_actions/Infoset.plays(and theirEventmirrors), subsumed by the
existingNode.own_prior_action/Node.plays.
Gambit v17.0.0-alpha.2
Added
- Undo/redo support has been re-enabled in the graphical interface.
- Added
Game.relabel_strategies, which simultaneously reassigns the labels of a player's strategies. (#1047) - Added
Game.set_strategies, which declares the ordered list of a player's strategies in a game in strategic form,
matching by label. (#1056) gambit-ipanow supports verbose output via the-Vflag, reporting on intermediate progress. (#501)- Added
-Roption togambit-liap,gambit-simpdiv,gambit-ipa, andgambit-gnmto reproducibly seed
random starting point generation. (#448) - Added
Game.relabel_players, which simultaneously reassigns the labels of the game's players. (#1058) - Added
max_rectanglestoenumpoly_solve(and-rtogambit-enumpoly), bounding the number
of cells examined when searching for equilibria on a single support. (#1055) - Added
Game.set_players, which declares the ordered list of the game's players, matching by label. (#1059)
Fixed
MixedStrategy.__eq__raisedAttributeErrorwhen comparing twoMixedStrategyinstances
directly (as opposed to aMixedStrategyand a plainMapping), because it read a Cython
cdef-declared attribute offotherwithout first casting it toMixedStrategy.- Numerical data in action graph games is now read with exact precision, to match other game formats. (#879)
enumpoly_solvecorrectly handles failed perturbations at singular Jacobians (#591)enumpoly_solveiterates sequences of actions in a deterministic order, pre-empting the
possibility of equilibria being found in orders that differ across runs. (#1016)- Improved the numerical stability of
enumpoly_solvehandling less-well-conditioned systems. (#1055)
Changed
MixedStrategyProfileandMixedBehaviorProfileobjects are now treated as products of
distributions. Computed quantities (payoffs, probabilities, and so on) are returned as
labeled vectors/mappings of values, rather than individual values per object.- All long-running calculations are now done in a thread in the GUI process, rather than calling the
command-line executables as external processes. (#990) - When displaying a strategic form, the graphical interface preserves decimal payoffs when those are
what are specified in the game, whenever possible. (#867) - The GUI's strategic game table gained an "Edit strategies" dialog, opened by clicking any of a
player's strategy labels, supporting adding, deleting, reordering, and renaming that player's
strategies in one operation. The "+" toolbar icon for adding a strategy, and the strategy
label's right-click "Delete strategy" menu, are removed, superseded by the dialog. (#1056)
Removed
- Assigning to
Strategy.labelhas been removed; useGame.relabel_strategies, which enforces
nonempty, unique labels. (#1047) Game.add_strategyandGame.delete_strategyhave been removed; useGame.set_strategies,
specifying the labels of the strategies the player is to have. (#1056)- Assigning to
Player.labelhas been removed; useGame.relabel_players, which enforces
nonempty, unique labels. (#1058) Game.add_playerhas been removed; useGame.set_players, specifying the labels
of the players. (#1059)
Gambit v17.0.0-alpha.1
Added
- Added
Game.make_infoset, forming a collection of personal decision nodes into a single
information set; the primitive operation for editing information structures. (#999) - Added
Game.make_event, which forms a collection of nodes into a single event with a
specified probability distribution over its actions. (#1009) - Added
Game.append_eventandGame.insert_event, the chance-move counterparts of
Game.append_moveandGame.insert_move: they add a brand-new chance move at a terminal
node or before an existing node respectively, requiring the probability distribution over
its actions to be specified up front, just asGame.make_eventdoes. (#999) Game.get_behaviorreturns a map-like view of the actions a reduced strategy prescribes at its player's
information sets; the unreachable information sets are absent. (#1002)
Changed
- Adopted the C++20 standard; build system now enforces exactly C++20 (not a minimum) (cf. #1027)
- Game object labels may now be any well-formed UTF-8 text, not just printable ASCII; a label must
still not contain control characters, begin/end with whitespace, or contain two consecutive
whitespace characters -- where "whitespace" means any Unicode space separator (e.g. U+00A0
NO-BREAK SPACE), not just the ASCII space. A game's title and description have no such
printable-character or spacing restriction, but must also be well-formed UTF-8. Inpygambit,
labels/title/description are now encoded/decoded as UTF-8 rather than ASCII. (#862) lcp_solveno longer silently absorbs internal exceptions if they occur, but instead these propagate out
to match the behaviour of all other Nash equilibrium solvers. (#996)gnm_solveexecutes callback when equilibrium is found rather than emitting all equilibria at the end of
the run. (#998)- Implemented bespoke XML parser that handles the subset in the de-facto legacy XML workbook .gbt format;
removes dependency on tinyxml. (#897) - Reduced strategies of extensive games are now labelled by sequential per-player integers ("1", "2", ...)
in the deterministic order in which they are generated, matching the labelling of strategies in strategic games. - Enumeration of candidate supports for a totally-mixed Nash equilibrium is now done by a
lazy generator algorithm rather than materialising all as a single list up front. Game.revealnow raises at absent-minded information sets; previously the result was undefined.
The C++Game::Revealnow enforces this too, since it is the single implementation shared by
Game.revealand the GUI's reveal-action command (previously each had its own copy of the
algorithm, and only the Python one checked for absent-mindedness). In the GUI, the Reveal menu
item (both the Edit menu and the node's context menu) is now disabled at an absent-minded
information set, rather than letting the action be attempted and rejected. (#999)- The GUI's infoset editing actions (assigning a node to an infoset, leaving an infoset) now enforce
the same rules asGame.make_infoset, e.g. matching action labels rather than just a matching
count; assigning a terminal node to an infoset now raises rather than silently doing nothing.
(#999) Game.append_moveandGame.insert_movenow requireplayerto be a personal player;
previously passing the chance player would silently create a new chance move with an
unrequested uniform distribution, bypassing the validation thatGame.make_event(and now
Game.append_event/Game.insert_event) otherwise enforce for chance moves. In the GUI, the
"Insert Move" dialog and the chance-token drag-and-drop action still create a chance move
with a uniform default when creating a fresh move, but now do so throughGame::InsertEvent;
collecting the actual distribution at creation time in the GUI is left as a separate piece
of UX work. (#999)Game.revealnow requiresplayerto be a personal player; previously passing the chance
player was either a silent no-op or raised an uninformativeRuntimeError, depending on the
game's structure, rather than a properUndefinedOperationError. (#999)Game.make_infosetnow accepts nodes belonging to a chance event, converting them to
personal decision nodes and discarding their probabilities; previously only personal decision
nodes were accepted. This matchesGame.make_event, which has always accepted personal
decision nodes and converted them to a chance event. (#999)
Fixed
- Converting a behavior profile to a strategy profile, and computing pure-strategy payoffs
no longer inserts spurious entries into a strategy's internal action map.
Removed
Game.set_playerhas been removed; useGame.make_infoset, specifying the members of the
information set and the new player. (#999)Game.set_infosethas been removed; useGame.make_infoset, specifying the members of the
target information set together with the node to add. (#999)Game.leave_infosethas been removed; useGame.make_infosetwith a single node, specifying
the current label if it should be retained. (#999)Game.sort_infosetshas been removed; it was deprecated in 16.5.0, as the iteration order of
information sets and their members is now maintained automatically. (#999)- Assigning to
Action.labelhas been removed; useGame.relabel_actions, which enforces
nonempty, unique labels. (#1026) Game.set_chance_probshas been removed; useGame.make_event, which expresses a change of
probabilities as forming the nodes of the event with the required distribution. (#1009)- The C++
Gameinterface'sSetPlayer,SetInfoset, andLeaveInfosetmethods have been
removed; they were non-orthogonal conveniences overMakeInfoset, and by this point were used
only in support of the corresponding GUI actions, which now build the equivalentMakeInfoset
calls directly.Game::Revealis kept, as a composite operation genuinely useful in its own
right, but is now implemented once in C++ rather than duplicated inpygambitand the GUI.
(#999) - The C++
Gameinterface'sSetChanceProbsmethod has been removed, along with the
stub overrides it forced on the strategic, AGG, and BAGG representations; it was subsumed by
MakeEvent, and by this point was used only in support of the GUI's "Edit Move" dialog, which
now builds the equivalentMakeEventcall directly. (#999)
Gambit v16.7.0
Added
- Added
Player.sequencesas the collection of sequences available to a player. - Implement
GameSubgameRep(C++) andSubgame(Python), a first-class object representing a subgame. (#585) - Games can be materialised directly from OpenSpiel games if
pyspielis installed. (#917) - Magnify events are now supported in GUI for zooming in/out on trees.
Fixed
- Corrected resizing of row and column index labels in strategic form so pivoting works correctly. (#844)
- Corrected incorrect output of strategic game tables to .nfg files if strategies have previously been
deleted in the game (#875) - Fix incorrect row index checking in swapping rows of a rectangular array (leading to errors in
for examplesimpdiv_solve) (#868) - In GUI, typing a payoff with a trailing slash is now interpreted as a whole number
(previously this led to a validation error dialog) - Improved initial zoom and centering of display of game trees on initial load, and focusing behavior
on currently-selected node or jumping to the root. Also adjusted the initial size of the
game window to a more comfortable size. (#569) - In the GUI, tab-traversal on tables (such as the strategic form payoff table) now works
as expected (TAB moves one cell to the right, wrapping if appropriate; SHIFT-TAB moves
to the left, wrapping if appropriate). - Max regret is calculated correctly for strategy and behavior profiles on games with zero player
strategies or actions (is defined to be 0 trivially) (#904) - Corrected calculation of total number of actions for a player in
pygambit(#938) - Corrected a regression in action graph games that left the internal data structure not fully initialised,
leading to segmentation faults. - Corrected handling of malformed AGG/BAGG files: files with an invalid or degenerate header
(for example a wrong file type, or a header declaring zero players) are now rejected with a
ValueErrorinstead of causing a segmentation fault while constructing the game.
Changed
- Added a new welcome/landing window on launching the GUI without a game. This has the effect of
avoiding creating a window with a trivial extensive game which the user then has to dismiss if
they do not require it. (#80) - Clarified handling of .efg/.nfg/.gbt file types in graphical interface and refined warnings about
unsaved work. (#12) - Created and documented right-click context menu in the normal form pivot table, which makes the
mechanism for deleting a strategy more clear. (#855) - Payoff editing in extensive games in the graphical interface is now done via a context popup window
rather than text controls drawn (not always well!) over the game tree display. (#947) - In
pygambit, indexing game object collections by integer position has been removed. (#942) - Validity of game object labels is enforced (printable ASCII and spaces only, no leading/trailing or
double spaces); invalid labels raiseValueErrorinpygambit. (#944) - Nonempty labels are now required for all players, outcomes, actions, and strategies.
Labels must be unique within the game for players and outcomes, within the player for
strategies, and within the information set for actions. - Refined and clarified the graphical interface's handling (and persisting) of "workspaces", and
improved warning messages on closing windows for games or workspaces with unsaved changes. - In
pygambit, the.outcome,.player, and.infosetattributes are now treated as predicates
that are evaluated on-demand, to align with the behaviour of collections. (#946)
Removed
- Built-in plotting of logit QRE for strategic games has been removed in the GUI (#809)
Version 16.6.0
[16.6.0] - 2026-03-24
Changed
- Gambit has a refreshed branding and logo which is reflected in this release!
Game.commenthas been renamed toGame.description- With behaviour profiles that reach some information sets with probability zero, beliefs, action
values, and infoset values are not well-defined. These functions now return a
std::optionalin C++ and type orNonein Python, where nulls indicate these quantities
are not defined. (#446)
Added
- Implement linear-time algorithm to find all root nodes of proper subgames, using an adaptation of
Tarjan's (1974) algorithm for finding bridges in an undirected graph. Subgame roots are cached so
subsequent lookup is constant-time (if the game is unchanged). (#584)
Fixed
enumpolywould take a very long time on some supports where an equilibrium is located on the
boundary of the projected game. Search is now restricted to the interior of the space ruling
these out; these will always be found by another projection. (#756)- In the graphical interface, the logit correspondence display would fail and terminate the program
on very small (<10^{-300}) probabilities. - The new subgame root computation fixes a bug which failed to detect subgames where the subgame
root node is a member of an absent-minded infoset. (#584) - Removed spurious warning in graphical interface when loading file as a command-line argument
(or also by clicking on a file in MSW, as that uses the command-line mechanism). (#801) Game.revealraised a null pointer access exception or dumped core in some cases (#749)
Version 16.5.0
Fixed
- Sequence-form based equilibrium-finding methods returned incorrect output on games with
outcomes at non-terminal nodes. (#654)
Added
- Implement
IsAbsentMinded()on information sets (C++) andInfoset.is_absent_minded(Python)
to detect if an information is absent-minded. - Tests for EFG Nash solvers --
enumpoly_solve,lp_solve,lcp_solve-- in behavior strategies - In
pygambit,Nodeobjects now have a read-only propertyown_prior_actionandInfosetobjects
have a read-only propertyown_prior_actionsto retrieve the last action or the set of last actions
taken by the player before reaching the node or information set, respectively. (#582) - In
pygambit,Nodeobjects now have a read-only propertyis_strategy_reachableto determine
if the node is reachable by at least one pure strategy profile. This proves useful for identifying
unreachable parts of the game tree in games with absent-mindedness. (#629)
Changed
- Labels for players, outcomes, strategies, and actions are expected to be non-empty and unique within
the relevant scope (games for players and outcomes, players for strategies, and information sets for
actions).pygambitnow issues aFutureWarningif a label is changed that does not conform to these
expectations. There is now an optional flagnormalize_labelstoread_*which will automatically
fill in non-confirming sets of labels. In version 16.6 these will be enforced; invalid label sets will
generate an error and files will be normalized automatically on read. (#614) - Terminology for agent-form calculations on extensive games has been clarified. Mixed behavior profiles
distinguish "agent" regret and liap values from their strategy-based analogs. Methods which compute
using the agent-form - specificallyenumpure_solveandliap_solve, now clarify this by being named
differently inpygambit. (#617) - For clarity, the
stop_afterandmax_deptharguments tolcp_solveare no longer permitted when solving using
the sequence form. These actually had no effect in previous versions. (#671) - In the graphical interface, removed option to configure information set link drawing; information sets
are always drawn and indicators are always drawn if an information set spans multiple levels. - In
pygambit, indexing the children of a node by a string inteprets the string as an action label,
not a label of a child node. In addition, indexing by an action object is now supported. (#587) - In
pygambit,min_payoffandmax_payoff(for both games and players) now refers to payoffs in
any play of the game; previously this referred only to the set of outcomes. (#498) - In
pygambit, calls tosort_infosetsare no longer required to normalise the game representation.
Iteration ordering of information sets and their members is ensured internally.sort_infosets
is therefore now a no-op and is deprecated; it will be removed in a future version.
Removed
- Eliminating dominated actions has been removed from the GUI as it was implementing a non-standard
formulation of dominance. (#612) - The C++ method for computing subgame perfect equilibria with selected methods has been removed
(and as a result from theenumpure,lp, andlcpcommand-line tools); this will be replaced
with new and more customisable approaches. (#639)
Version 16.4.1
Fixed
- Fixed a regression in which null outcomes in strategic game tables were not handled correctly
when changing the number of strategies in the game (#571) - Fixed improper shared pointer handling when writing a .nfg file based on a game in
extensive form. - Fixed a regression in the GUI in which unique action labels were not being generated when
adding a move via drag-and-drop of a player icon (#618) - Fixed a regression generating null pointer dereference errors when setting the outcome of
a node to the null outcome (#625, #647) - Fixed a regression in calculating payoff quantities for mixed strategy profiles derived from
mixed behavior profiles (#616)