Next: , Previous: Match info, Up: Python scripting


11.3.4 Python game

A dictionary containing the following items:

info

General game info. For example,

>>> m['games'][0]['info']

{'points-won': 1, 'score-X': 0, 'score-O': 0, 'winner': 'X', 'resigned': False}

If no winner is specified, winner is None.

>>> m['games'][2]['info']

{'score-X': 2, 'winner': None, 'score-O': 0}

game

A Sequence of actions.

stats (optional)

Game statistics. Similar entries to Analyze->Game statistics from the GUI.