summaryrefslogtreecommitdiff
path: root/tit42tat.pl
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-07 10:42:03 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-07 10:42:03 +0100
commit1c86bdd6b2f717bb722983377d144a9b2863fc68 (patch)
treef003aa6ea51edeb0147ba0f2aa97df67f210148f /tit42tat.pl
parent087a091275763a651613e9f168ff8bc19c31f6cb (diff)
downloadwbs-1c86bdd6b2f717bb722983377d144a9b2863fc68.tar.gz
wbs-1c86bdd6b2f717bb722983377d144a9b2863fc68.tar.bz2
wbs-1c86bdd6b2f717bb722983377d144a9b2863fc68.zip
prisoners_dilemma: Track module state
Will be needed for peridical algorithms.
Diffstat (limited to 'tit42tat.pl')
-rw-r--r--tit42tat.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tit42tat.pl b/tit42tat.pl
index 4ec519d..72a6e6a 100644
--- a/tit42tat.pl
+++ b/tit42tat.pl
@@ -1,5 +1,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).
+tit42tat([d,d|_],d,_,_).
+tit42tat(_,c,_,_).