Module Expr Str Import alias Import alias ImportFrom alias Assign TupleStore NameStore NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Call NameLoad Str NameLoad Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Num NameLoad Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad keyword Dict Str NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad BinOpAdd ListLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad ListLoad NameLoad keyword Dict Str Str Str NameLoad NameLoad Num Assign NameStore Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd ListLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad ListLoad NameLoad BinOpAdd BinOpAdd ListLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad ListLoad NameLoad ListLoad NameLoad keyword Dict Str Str Str NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Call NameLoad Str NameLoad Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Call NameLoad Str NameLoad Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list decorator_list
N/A N/A Tests for grudger strategies. N/A random N/A axelrod test_player TestPlayer N/A N/A C D N/A N/A N/A axelrod Actions C N/A N/A axelrod Actions D TestGrudger N/A TestPlayer N/A N/A name Grudger N/A player N/A axelrod Grudger N/A expected_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 test_initial_strategy N/A N/A self N/A N/A N/A 
        Starts by cooperating
         N/A N/A N/A self first_play_test C N/A test_strategy N/A N/A self N/A N/A N/A 
        If opponent defects at any point then the player will defect forever
         N/A N/A N/A self responses_test N/A C D D D N/A C C C C N/A C N/A N/A N/A self responses_test N/A C C D D D N/A C D C C C N/A D N/A N/A TestForgetfulGrudger N/A TestPlayer N/A N/A name Forgetful Grudger N/A player N/A axelrod ForgetfulGrudger N/A expected_classifier N/A memory_depth stochastic makes_use_of inspects_source manipulates_source manipulates_state 10 False N/A set False False False test_strategy N/A N/A self N/A N/A N/A N/A N/A self responses_test N/A N/A N/A C attrs N/A grudged False N/A N/A N/A self responses_test N/A C N/A C N/A C attrs N/A grudged False N/A N/A N/A self responses_test N/A C N/A D N/A D attrs N/A grudged True N/A i N/A range 10 N/A N/A N/A N/A self responses_test N/A N/A C C N/A N/A D i N/A N/A C D N/A N/A C i N/A D attrs N/A grudged grudge_memory mem_length True i 10 N/A i 10 N/A N/A N/A self responses_test N/A N/A N/A C C N/A N/A D i N/A C N/A N/A N/A C D N/A N/A C i N/A C N/A C attrs N/A grudged grudge_memory mem_length False 0 10 N/A test_reset_method N/A N/A self N/A N/A N/A Tests the reset method. N/A P1 N/A N/A axelrod ForgetfulGrudger N/A N/A P1 history N/A C D D D N/A N/A P1 grudged True N/A N/A P1 grudge_memory 4 N/A N/A N/A P1 reset N/A N/A N/A self assertEqual N/A P1 history N/A N/A N/A N/A self assertEqual N/A P1 grudged False N/A N/A N/A self assertEqual N/A P1 grudge_memory 0 N/A N/A TestOppositeGrudger N/A TestPlayer N/A N/A name Opposite Grudger N/A player N/A axelrod OppositeGrudger N/A expected_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 test_initial_strategy N/A N/A self N/A N/A N/A Starts by defecting. N/A N/A N/A self first_play_test D N/A test_strategy N/A N/A self N/A N/A N/A If opponent cooperates at any point then the player will cooperate
        forever. N/A N/A N/A self responses_test N/A C D D D N/A D D D D N/A D N/A N/A N/A self responses_test N/A C C D D D N/A C D C C C N/A C N/A N/A TestAggravater N/A TestPlayer N/A N/A name Aggravater N/A player N/A axelrod Aggravater N/A expected_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 test_initial_strategy N/A N/A self N/A N/A N/A 
        Starts by defecting
         N/A N/A N/A self first_play_test D N/A test_strategy N/A N/A self N/A N/A N/A 
        If opponent defects at any point then the player will defect forever
         N/A N/A N/A self responses_test N/A C D D D N/A C C C C N/A C N/A N/A N/A self responses_test N/A C C D D D N/A C D C C C N/A D N/A N/A