The sgf Module¶
utilities for parsing SGF (Smart Game Format) files
- sente.sgf.dump(game: sente.Game, file_name: str, metadata: Dict[str, str] = {}) None¶
saves a game as an SGF
- sente.sgf.dumps(game: sente.Game, metadata: Dict[str, str] = {}) str¶
Serialize a string as an SGF
- sente.sgf.get_metadata(filename: str) Dict[str, str]¶
extracts metadata from a SGF file and puts it into a python dictionary
- sente.sgf.load(filename: str) sente.Game¶
Loads a go game from an SGF file
- sente.sgf.loads(arg0: str) sente.Game¶