From 553e4655f2227783051d5ea7fba65d9135310ad4 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 8 Nov 2012 13:17:20 +0100 Subject: Prisoners Dilemma: Move rules to subdirectory --- rules/tit42tat.pl | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rules/tit42tat.pl (limited to 'rules/tit42tat.pl') diff --git a/rules/tit42tat.pl b/rules/tit42tat.pl new file mode 100644 index 0000000..281bc4d --- /dev/null +++ b/rules/tit42tat.pl @@ -0,0 +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,_,_). -- cgit