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/tit4tat.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rules/tit4tat.pl') diff --git a/rules/tit4tat.pl b/rules/tit4tat.pl index 2fe0a8f..cacbe16 100644 --- a/rules/tit4tat.pl +++ b/rules/tit4tat.pl @@ -3,6 +3,8 @@ % move (if the opponent defects in some round, Tit for Tat will defect in the % following one; to cooperation it responds with cooperation). +% Syntax: tit4tat(+history, -choice, +state_in, -state_out) + % Use opponents last decision tit4tat([Last|_],Last,_,_). % Fallback to coorporate if history is empty. -- cgit