def returnDoubles(self, report):
        '''Filters out report to only include triads close to winning. ie "[X,X, ]" or '[O, ,O]"'''
        doubles = {}
        for triad in report:
            if report[triad] in oDoubles or report[triad] in xDoubles:
                doubles[triad] = report[triad]
        return doubles
Filters out report to only include triads close to winning. ie "[X,X, ]" or '[O, ,O]"
recipes/Python/580723_TicTacToe_text_based/recipe-580723.py