summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-06 16:38:16 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-06 16:38:16 +0100
commit4f68ee63a4e32d351a274113a610bea01c506e27 (patch)
tree60459a574b8a862367257fdfcbc9296996b6a486
parent6710108573cf191ad1ceead4a344d77f7db62a62 (diff)
downloadwbs-4f68ee63a4e32d351a274113a610bea01c506e27.tar.gz
wbs-4f68ee63a4e32d351a274113a610bea01c506e27.tar.bz2
wbs-4f68ee63a4e32d351a274113a610bea01c506e27.zip
tit4tat.pl: Try to document the syntax
Since its not readable from the facts.
-rw-r--r--tit4tat.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tit4tat.pl b/tit4tat.pl
index 6362ecc..c94c13e 100644
--- a/tit4tat.pl
+++ b/tit4tat.pl
@@ -1,3 +1,5 @@
+% Syntax: MODULE(UserDecisionHistry [in], ModuleDecision [out])
+
% Use opponents last decision
tit4tat([Last|_],Last).
% Fallback to coorporate if history is empty.