summaryrefslogtreecommitdiff
path: root/rules/tit42tat.pl
diff options
context:
space:
mode:
Diffstat (limited to 'rules/tit42tat.pl')
-rw-r--r--rules/tit42tat.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/tit42tat.pl b/rules/tit42tat.pl
index 281bc4d..1e66062 100644
--- a/rules/tit42tat.pl
+++ b/rules/tit42tat.pl
@@ -1,5 +1,7 @@
% Select distraction only if opponents both last decision were to distract.
% See: http://en.wikipedia.org/wiki/Tit_for_tat#Tit_for_two_tats
+% Syntax: tit42tat(+history, -choice, +state_in, -state_out)
+
tit42tat([d,d|_],d,_,_):-!.
tit42tat(_,c,_,_).