#NEWLINE# def test_strategy( self ) : #NEWLINE# #INDENT# 'Cooperates for first ten rounds' #NEWLINE# self . first_play_test ( C ) #NEWLINE# for i in range ( 10 ) : #NEWLINE# #INDENT# history_1 = ( [ C ] * i ) #NEWLINE# history_2 = ( [ C ] * i ) #NEWLINE# self . responses_test ( history_1 , history_2 , [ C ] ) #NEWLINE# #UNINDENT# history_1 = ( [ C ] * 11 ) #NEWLINE# history_2 = ( [ D ] * 11 ) #NEWLINE# self . responses_test ( history_1 , history_2 , [ D ] , random_seed = 10 ) #NEWLINE# history_1 = ( [ C ] * 11 ) #NEWLINE# history_2 = ( ( [ D ] * 10 ) + [ C ] ) #NEWLINE# self . responses_test ( history_1 , self , [ D ] , random_seed = 10 ) #NEWLINE# history_1 = ( [ C ] * 11 ) #NEWLINE# history_2 = ( ( [ D ] * 5 ) + ( [ C ] * 6 ) ) #NEWLINE# self . responses_test ( history_1 , history_2 , [ D , D , D , D ] , random_seed = 20 ) #NEWLINE# history_1 = ( [ C ] * 11 ) #NEWLINE# history_2 = ( ( [ C ] * 9 ) + ( [ D ] * 2 ) ) #NEWLINE# self . responses_test ( history_1 , history_2 , [ C , D , D , C ] , random_seed = 25 )