diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-12 10:37:23 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-12 10:37:23 +0100 |
commit | 565fbb75729138607c75c9ddcaca385402d67944 (patch) | |
tree | 78dc67b79c891dcd5c953cc929b489accb930c68 /rules/hard_tit4tat.pl | |
parent | 7e23cb0e2a2ad82cddf354ee0d3c2773b99b4d02 (diff) | |
download | wbs-565fbb75729138607c75c9ddcaca385402d67944.tar.gz wbs-565fbb75729138607c75c9ddcaca385402d67944.tar.bz2 wbs-565fbb75729138607c75c9ddcaca385402d67944.zip |
Prisoners Dilemma: Add parameter description to modules
Diffstat (limited to 'rules/hard_tit4tat.pl')
-rw-r--r-- | rules/hard_tit4tat.pl | 2 |
1 files changed, 2 insertions, 0 deletions
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,_,_). |