Open stengel opened 10 years ago
tried to implement but xml storage of game is used at other places (and re-loaded!) which creates a bug of empty strategic form when saving and other problems. Format change does work well for extensive form. See XMLExporter.as and XMLImporter.as locally on Bernhard's system
A new XML format for saving games, otherwise we have three formats floating around. The main thing to change is to have a playerId 0,1,2 (or more if we have >2 players) stored with the player's NODE rather than the player name. In the game tree, player are DISPLAYED by their names. These are set at the beginning (if not, "1" and "2" as default names). Here we CURRENTLY HAVE
and it SHOULD BECOME (in order not to overload "player")
and in the rest of the data the only reference to a player for a node is via player, not the name of the player. This is how the game tree is logically processed. Example:
Player names are irrelevant for the algorithms.
Whenever we refer to a player in the FILE, it should only be via the player NUMBER which is 0 for chance 1 for player 1 2 for player 2 3 for player 3 etc. once more than 2 players are implemented.
This player number is what is used when assigning players to nodes and payoffs. Examples: