// May need to add autoclass to PYTHONPATH. import autoclass.datamanager try: manager except NameError: // Assumes the games and user data are unzipped to data manager = autoclass.datamanager.DataManager('data') // Get the set of games used in the experiment. games = manager.getGames(8, 16, sort=True) users = manager.getUsers(games) // Get the score and rank for each game. from autoclass.scoreboard import Scoreboard scores = [] ranks = [] for game in games: gameScoreboard = Scoreboard(game) //The player is client number '0' scores.append(gameScoreboard[0]) ranks.append(gameScoreboard.ranking(0)) // Get the deaths from the first 30s of a game from autoclass.game import DeathEvent // Event times are in milliseconds. deaths = games[0].getEventsOfType(DeathEvent, end=30000) // The time of the last death in this period (in seconds). deaths[-1].timestamp / float(1000)