-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing functions for reading and writing game files of speciali…
…zed formats Reading * `read_efg` - reads an .efg file format * `read_nfg` - reads an .nfg file format * `read_gbt` - reads a .gbt file (XML files produced by the GUI) * `read_agg` - reads an action-graph games file format Writing * `Game.to_efg` - writes an .efg file * `Game.to_nfg` - writes an .nfg file * `Game.to_html` - writes out HTML tables * `Game.to_latex` - writes a .tex file New tests in test_io.py
- Loading branch information
Showing
6 changed files
with
432 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ missing | |
gambit | ||
.python-version | ||
dist | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#AGG | ||
# Generated by GAMUT v1.0.1 | ||
# Random Symmetric Action Graph Game | ||
# Game Parameter Values: | ||
# Random seed: 1306765487422 | ||
# Cmd Line: -players 2 -actions 2 -g RandomSymmetricAGG -output SpecialOutput -random_params -f 2x2.agg | ||
# Players: 2 | ||
# Actions: 2 2 | ||
# players: 2 | ||
# actions: [2] | ||
# graph: RandomGraph | ||
# graph_params: null | ||
# Graph Params: | ||
# { nodes: 2, edges: 4, sym_edges: false, reflex_ok: true } | ||
# Players: 2 | ||
# Actions: [ 2 2 ] | ||
|
||
#number of players: | ||
2 | ||
#number of action nodes: | ||
2 | ||
#number of func nodes: | ||
0 | ||
|
||
#sizes of action sets: | ||
2 2 | ||
|
||
#action sets: | ||
0 1 | ||
0 1 | ||
|
||
|
||
#the action graph: | ||
2 0 1 | ||
2 1 0 | ||
|
||
#the types of func nodes: | ||
#0: sum | ||
#1: existence | ||
#2: highest | ||
#3: lowest | ||
|
||
|
||
#the payoffs: | ||
#now the payoff values: one row per action node. | ||
#For each row: first, the type of the payoff format | ||
#Then payoffs are given in lexicographical order of the input configurations | ||
0 35.622809717175556 -3.7188980070375948 | ||
0 -10.180526107272556 95.1203958671928 |
Oops, something went wrong.