@staticmethod
    def strategy(opponent):

        index = next((index for index, value in enumerate(opponent.history, start=1) if value == D), None)

        if index is None:
            return C

        return random_choice(1 - 1 / float(abs(index)))
Test whether self.path corresponds to a CGI script.
dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/strategies/inverse.py/Inverse.strategy--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/CGIHTTPServer.py/CGIHTTPRequestHandler.is_cgi