summaryrefslogtreecommitdiff
path: root/rules/tit4tat.pl
diff options
context:
space:
mode:
Diffstat (limited to 'rules/tit4tat.pl')
-rw-r--r--rules/tit4tat.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/tit4tat.pl b/rules/tit4tat.pl
index 2fe0a8f..cacbe16 100644
--- a/rules/tit4tat.pl
+++ b/rules/tit4tat.pl
@@ -3,6 +3,8 @@
% move (if the opponent defects in some round, Tit for Tat will defect in the
% following one; to cooperation it responds with cooperation).
+% Syntax: tit4tat(+history, -choice, +state_in, -state_out)
+
% Use opponents last decision
tit4tat([Last|_],Last,_,_).
% Fallback to coorporate if history is empty.