Skip to content

Preserve decimal payoffs in strategic forms when possible in GUI. - #1064

Merged
tturocy merged 1 commit into
masterfrom
issue_867
Aug 20, 2026
Merged

tturocy merged 1 commit into
masterfrom
issue_867

Conversation

@tturocy

@tturocy tturocy commented Aug 19, 2026

Copy link
Copy Markdown
Member

This makes an adjustment to the display of strategic forms to preserve decimal payoffs whenever possible:

  • In a strategic game, if the payoff is recorded as a decimal number (rather than a fraction), that is displayed.
  • In an extensive game, if the contingency corresponds to exactly one path through the tree, and that path has one outcome on it, then the textual representation of that payoff is displayed.

For extensive games, if arithmetic is required (because of chance events or nonterminal outcomes), the resulting rational payoff is displayed, irrespective of whether it has an exact decimal representation.

Closes #867.

This makes an adjustment to the display of strategic forms to preserve decimal payoffs whenever possible:

* In a strategic game, if the payoff is recorded as a decimal number (rather than a fraction), that is displayed.
* In an extensive game, if the contingency corresponds to exactly one path through the tree, and that path has one outcome on it, then the textual representation of that payoff is displayed.

For extensive games, if arithmetic is required (because of chance events or nonterminal outcomes), the resulting rational payoff is displayed,
irrespective of whether it has an exact decimal representation.

Closes #867.
@tturocy
tturocy merged commit 37d2cdf into master Aug 20, 2026
32 of 34 checks passed
@tturocy
tturocy deleted the issue_867 branch August 20, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH]: Display decimal payoffs in strategic forms

1 participant