summaryrefslogtreecommitdiff
path: root/tit4tat.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tit4tat.pl')
-rw-r--r--tit4tat.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tit4tat.pl b/tit4tat.pl
index 47d8535..2cf520c 100644
--- a/tit4tat.pl
+++ b/tit4tat.pl
@@ -1,3 +1,8 @@
+% Tit for Tat:
+% Begins with cooperation and then plays what its opponent played in the last
+% move (if the opponent defects in some round, Tit for Tat will defect in the
+% following one; to cooperation it responds with cooperation).
+
% Syntax: MODULE(UserDecisionHistry [in], ModuleDecision [out])
% Use opponents last decision