Repository navigation
Gambit v17.0.0-alpha.1
Pre-release
Pre-release
·
169 commits
to master
since this release
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)