Skip to content

Instantly share code, notes, and snippets.

@robclewley
Created February 17, 2016 23:36
Show Gist options
  • Save robclewley/a27990d7780bd4312540 to your computer and use it in GitHub Desktop.
Save robclewley/a27990d7780bd4312540 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robclewley
Copy link
Author

def multi_run(n):
    """n is number of times to run game, where game is a globally defined GameFSM object.
    Returns list of dataframes created from move records (using convert_records)
    """
    all_data = []
    for i in range(n):
        game.run()
        all_data.append(convert_records(game.records))
    return all_data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment