Module ImportFrom alias ImportFrom alias alias alias Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str Call NameLoad Str NameLoad NameLoad Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad AttributeLoad NameLoad attr body Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad If CompareGt NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str Call NameLoad Str NameLoad Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad AttributeLoad NameLoad attr body Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad If CompareGt NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad orelse Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list decorator_list
N/A collections defaultdict axelrod Actions Player init_args N/A N/A C D N/A N/A Actions C N/A Actions D Retaliate N/A Player N/A N/A 
    A player starts by cooperating but will retaliate once the opponent
    has won more than 10 percent times the number of defections the player has.
     N/A classifier N/A memory_depth stochastic inspects_source makes_use_of manipulates_source manipulates_state N/A float inf False False N/A set False False __init__ N/A N/A self retaliation_threshold N/A 0.1 N/A N/A 
        Uses the basic init from the Player class, but also set the name to
        include the retaliation setting.
         N/A N/A N/A Player __init__ self N/A N/A self retaliation_threshold retaliation_threshold N/A N/A self name N/A N/A Retaliate ( N/A str N/A self retaliation_threshold ) N/A N/A self play_counts N/A defaultdict int N/A init_args strategy N/A N/A self opponent N/A N/A N/A 
        If the opponent has played D to my C more often than x% of the time
        that I've done the same to him, play D. Otherwise, play C.
         N/A N/A len N/A self history N/A N/A last_round N/A N/A N/A self history N/A -1 N/A N/A opponent history N/A -1 N/A N/A N/A self play_counts N/A last_round 1 N/A CD_count N/A N/A self play_counts N/A N/A C D N/A DC_count N/A N/A self play_counts N/A N/A D C N/A N/A CD_count N/A DC_count N/A self retaliation_threshold N/A N/A D N/A C N/A reset N/A N/A self N/A N/A N/A N/A N/A Player reset self N/A N/A self play_counts N/A defaultdict int N/A N/A Retaliate2 N/A Retaliate N/A N/A 
    Retaliate player with a threshold of 8 percent.
     __init__ N/A N/A self retaliation_threshold N/A 0.08 N/A N/A N/A N/A N/A super Retaliate2 self __init__ retaliation_threshold retaliation_threshold N/A N/A Retaliate3 N/A Retaliate N/A N/A 
    Retaliate player with a threshold of 5 percent.
     __init__ N/A N/A self retaliation_threshold N/A 0.05 N/A N/A N/A N/A N/A super Retaliate3 self __init__ retaliation_threshold retaliation_threshold N/A N/A LimitedRetaliate N/A Player N/A N/A 
    A player that co-operates unless the opponent defects and wins.
    It will then retaliate by defecting. It stops when either, it has beaten
    the opponent 10 times more often that it has lost or it reaches the
    retaliation limit (20 defections).
     N/A classifier N/A memory_depth stochastic makes_use_of inspects_source manipulates_source manipulates_state N/A float inf False N/A set False False False __init__ N/A N/A self retaliation_threshold retaliation_limit N/A 0.1 20 N/A N/A 
        Parameters
        ----------
        retaliation_threshold, float
            The threshold of the difference in defections, previous rounds of
            (C, D) versus (D, C)
        retaliation_limit, int
            The maximum number of retaliations until the strategy returns to
            cooperation
         N/A N/A N/A Player __init__ self N/A N/A self retaliating False N/A N/A self retaliation_count 0 N/A N/A self retaliation_threshold retaliation_threshold N/A N/A self retaliation_limit retaliation_limit N/A N/A self play_counts N/A defaultdict int N/A N/A self init_args N/A retaliation_threshold retaliation_limit N/A N/A self name N/A N/A N/A N/A Limited Retaliate ( N/A str N/A self retaliation_threshold / N/A str N/A self retaliation_limit ) N/A init_args strategy N/A N/A self opponent N/A N/A N/A 
        If the opponent has played D to my C more often than x% of the time
        that I've done the same to him, retaliate by playing D but stop doing
        so once I've hit the retaliation limit.
         N/A N/A len N/A self history N/A N/A last_round N/A N/A N/A self history N/A -1 N/A N/A opponent history N/A -1 N/A N/A N/A self play_counts N/A last_round 1 N/A CD_count N/A N/A self play_counts N/A N/A C D N/A DC_count N/A N/A self play_counts N/A N/A D C N/A N/A CD_count N/A DC_count N/A self retaliation_threshold N/A N/A N/A self retaliating True N/A N/A N/A self retaliating False N/A N/A self retaliation_count 0 N/A N/A self retaliating N/A N/A N/A N/A self retaliation_count N/A self retaliation_limit N/A N/A N/A self retaliation_count 1 N/A D N/A N/A N/A self retaliation_count 0 N/A N/A self retaliating False N/A C N/A reset N/A N/A self N/A N/A N/A N/A N/A Player reset self N/A N/A self play_counts N/A defaultdict int N/A N/A self retaliating False N/A N/A self retaliation_count 0 N/A N/A LimitedRetaliate2 N/A LimitedRetaliate N/A N/A 
    LimitedRetaliate player with a threshold of 8 percent and a
    retaliation limit of 15.
     __init__ N/A N/A self retaliation_threshold retaliation_limit N/A 0.08 15 N/A N/A N/A N/A N/A super LimitedRetaliate2 self __init__ retaliation_threshold retaliation_threshold retaliation_limit retaliation_limit N/A N/A LimitedRetaliate3 N/A LimitedRetaliate N/A N/A 
    LimitedRetaliate player with a threshold of 5 percent and a
    retaliation limit of 20.
     __init__ N/A N/A self retaliation_threshold retaliation_limit N/A 0.05 20 N/A N/A N/A N/A N/A super LimitedRetaliate3 self __init__ retaliation_threshold retaliation_threshold retaliation_limit retaliation_limit N/A N/A