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/random_choice.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rules/random_choice.pl') diff --git a/rules/random_choice.pl b/rules/random_choice.pl index 3bd4a91..8075afb 100644 --- a/rules/random_choice.pl +++ b/rules/random_choice.pl @@ -1,2 +1,5 @@ + +% Syntax: random_choice(+history, -choice, +state_in, -state_out) + random_choice(_, Choice, _, _) :- random(Number), (Number < 0.5 -> Choice=c ; Choice=d). -- cgit