diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-08 13:17:20 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-08 13:17:20 +0100 |
commit | 553e4655f2227783051d5ea7fba65d9135310ad4 (patch) | |
tree | df7ddbc67de4cef8c0eda917c76233ddc63d3feb /rules/random_choice.pl | |
parent | f22d7a9894d530fa2f8ceaeff3a8a52746ad7a1c (diff) | |
download | wbs-553e4655f2227783051d5ea7fba65d9135310ad4.tar.gz wbs-553e4655f2227783051d5ea7fba65d9135310ad4.tar.bz2 wbs-553e4655f2227783051d5ea7fba65d9135310ad4.zip |
Prisoners Dilemma: Move rules to subdirectory
Diffstat (limited to 'rules/random_choice.pl')
-rw-r--r-- | rules/random_choice.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/random_choice.pl b/rules/random_choice.pl new file mode 100644 index 0000000..3bd4a91 --- /dev/null +++ b/rules/random_choice.pl @@ -0,0 +1,2 @@ +random_choice(_, Choice, _, _) :- + random(Number), (Number < 0.5 -> Choice=c ; Choice=d). |