From 565fbb75729138607c75c9ddcaca385402d67944 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 12 Nov 2012 10:37:23 +0100 Subject: Prisoners Dilemma: Add parameter description to modules --- rules/hard_tit4tat.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rules/hard_tit4tat.pl') diff --git a/rules/hard_tit4tat.pl b/rules/hard_tit4tat.pl index 8efc124..6ba56e6 100644 --- a/rules/hard_tit4tat.pl +++ b/rules/hard_tit4tat.pl @@ -2,5 +2,7 @@ % Cooperates unless the opponent has defected % at least once in the last two rounds. +% Syntax: hard_tit4tat(+history, -choice, +state_in, -state_out) + hard_tit4tat([A,B|_],d,_,_):-(A=d;B=d),!. hard_tit4tat(_,c,_,_). -- cgit