pygambit.gambit.Game.to_efg#

Game.to_efg(filepath_or_buffer: str | Path | IOBase | None = None) str | None#

Save the game to an .efg file or return its serialized representation

Parameters:

filepath_or_buffer (str or Path or io.IOBase or None, default None) – String, path object, or file-like object implementing a write() function. If None, the result is returned as a string.

Return type:

String representation of the game or None if the game is saved to a file

See also

to_nfg, to_html, to_latex