gameanalysis.gamereader module

Module for loading an arbitrary game with its associated serializer

gameanalysis.gamereader.load(filelike)[source]

Read a game from a file

Parameters:filelike (file-like) – A file-like object to read the game from. The entire file will be consumed by this action.
gameanalysis.gamereader.loadj(obj)[source]

Read a game from serializable python objects

Parameters:json ({...}) – The python object representation of a game encoded as json. Any valid game will be read and returned.
gameanalysis.gamereader.loads(string)[source]

Read a game from a string

Parameters:string (str) – A string representation of the game.