From acb757d2d55cdd13a7bd006c2b50785d4ba8400d Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 7 Nov 2012 10:50:52 +0100 Subject: Prisoners Dilemma: Add periodically DDC and SSZ algorithm --- periodically_ddc.pl | 4 ++++ periodically_ssz.pl | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 periodically_ddc.pl create mode 100644 periodically_ssz.pl diff --git a/periodically_ddc.pl b/periodically_ddc.pl new file mode 100644 index 0000000..897986d --- /dev/null +++ b/periodically_ddc.pl @@ -0,0 +1,4 @@ +% Plays periodically: Defect–Defect–Coop. +periodically_ddc(_, d, [], [1]). +periodically_ddc(_, d, [1], [2]). +periodically_ddc(_, c, [2], []). diff --git a/periodically_ssz.pl b/periodically_ssz.pl new file mode 100644 index 0000000..21cb017 --- /dev/null +++ b/periodically_ssz.pl @@ -0,0 +1,4 @@ +% Plays periodically: Coop-Coop-Defect +periodically_ssz(_, c, [], [1]). +periodically_ssz(_, c, [1], [2]). +periodically_ssz(_, d, [2], []). -- cgit