% Hard Tit for Tat: % Cooperates unless the opponent has defected % at least once in the last two rounds. % Syntax: hard_tit4tat(+history, -choice, +state_in, -state_out) hard_tit4tat([A,B|_],d,_,_):-(A=d;B=d),!. hard_tit4tat(_,c,_,_).