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 Num NameLoad Call NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str 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 NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad ListLoad NameLoad keyword Dict Str NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr For NameStore Call NameLoad BinOpSub NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad NameLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad BinOpAdd ListLoad NameLoad NameLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad ListLoad NameLoad keyword Dict Str Str NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad NameLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad BinOpAdd ListLoad NameLoad NameLoad NameLoad NameLoad BinOpMult ListLoad NameLoad NameLoad ListLoad NameLoad keyword Dict Str Str NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad 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 Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad ListLoad 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 Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad BinOpAdd BinOpMult ListLoad NameLoad Num ListLoad NameLoad keyword Dict Str Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad 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 ListLoad ListLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad decorator_list decorator_list
N/A N/A Test for the once bitten strategy. 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 TestOnceBitten N/A TestPlayer N/A N/A name Once Bitten N/A player N/A axelrod OnceBitten N/A expected_classifier N/A memory_depth stochastic makes_use_of inspects_source manipulates_source manipulates_state 12 False N/A set False False False 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 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 C N/A C C N/A C attrs N/A grudged False N/A N/A N/A self responses_test N/A C C C N/A C C D N/A C attrs N/A grudged False N/A N/A N/A self responses_test N/A C C C C N/A C C D D N/A D attrs N/A grudged True N/A mem_length N/A N/A N/A self player mem_length N/A i N/A range N/A mem_length 1 N/A N/A N/A N/A self responses_test N/A N/A C C C C N/A N/A D i N/A N/A C C D D N/A N/A D i N/A D attrs N/A grudged grudge_memory True i N/A i N/A mem_length 1 N/A N/A N/A self responses_test N/A N/A C C C C N/A N/A D i N/A N/A C C D D N/A N/A C i N/A C attrs N/A grudged grudge_memory False 0 N/A test_reset N/A N/A self N/A N/A N/A Check that grudged gets reset properly N/A p1 N/A N/A self player N/A p2 N/A N/A axelrod Defector N/A N/A N/A p1 play p2 N/A N/A N/A p1 play p2 N/A N/A N/A p1 play p2 N/A N/A N/A self assertTrue N/A p1 grudged N/A N/A N/A p1 reset N/A N/A N/A self assertFalse N/A p1 grudged N/A N/A N/A self assertEqual N/A p1 history N/A N/A N/A TestFoolMeOnce N/A TestPlayer N/A N/A name Fool Me Once N/A player N/A axelrod FoolMeOnce 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 N/A N/A self N/A N/A 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 more than once, defect forever
         N/A N/A N/A self responses_test N/A C N/A D N/A C N/A N/A N/A self responses_test N/A C C N/A D D N/A D N/A N/A N/A self responses_test N/A C C N/A D C N/A C N/A N/A N/A self responses_test N/A C C C N/A D D D N/A D N/A N/A TestForgetfulFoolMeOnce N/A TestPlayer N/A N/A name Forgetful Fool Me Once N/A player N/A axelrod ForgetfulFoolMeOnce N/A expected_classifier N/A memory_depth stochastic makes_use_of inspects_source manipulates_source manipulates_state N/A float inf True N/A set False False False test_initial N/A N/A self N/A N/A 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 Test that will forgive one D but will grudge after 2 Ds, randomly
        forgets count N/A N/A N/A random seed 2 N/A N/A N/A self responses_test N/A C N/A D N/A C N/A N/A N/A self responses_test N/A C C N/A D D N/A D N/A N/A N/A self responses_test N/A C C N/A D D N/A N/A N/A D 18 N/A C attrs N/A D_count 0 random_seed 2 N/A test_reset N/A N/A self N/A N/A N/A Check that count gets reset properly N/A P1 N/A N/A self player N/A N/A P1 history N/A C D N/A P2 N/A N/A axelrod Player N/A N/A P2 history N/A D N/A N/A N/A random seed 1 N/A N/A N/A self assertEqual N/A N/A P1 strategy P2 C N/A N/A N/A self assertEqual N/A P1 D_count 1 N/A N/A N/A P1 reset N/A N/A N/A self assertEqual N/A P1 D_count 0 N/A N/A N/A self assertEqual N/A P1 history N/A N/A N/A TestFoolMeForever N/A TestPlayer N/A N/A name Fool Me Forever N/A player N/A axelrod FoolMeForever 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_strategy N/A N/A self N/A N/A N/A 
        If opponent defects more than once, defect forever
         N/A N/A N/A self responses_test N/A N/A N/A D N/A N/A N/A self responses_test N/A D N/A D N/A C N/A N/A N/A self responses_test N/A D N/A C N/A D N/A N/A N/A self responses_test N/A D C N/A D C N/A C N/A N/A N/A self responses_test N/A D C C N/A D C C N/A C N/A N/A