summaryrefslogtreecommitdiff
path: root/tit42tat.pl
blob: 72a6e6a1321780bd0a5946e5fa9d01f7a842d6d4 (plain)
1
2
3
4
5
% Select distraction only if opponents both last decision were to distract.
% See: http://en.wikipedia.org/wiki/Tit_for_tat#Tit_for_two_tats

tit42tat([d,d|_],d,_,_).
tit42tat(_,c,_,_).