summaryrefslogtreecommitdiff
path: root/prisoners_dilemma.pl
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-08 13:17:20 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-08 13:17:20 +0100
commit553e4655f2227783051d5ea7fba65d9135310ad4 (patch)
treedf7ddbc67de4cef8c0eda917c76233ddc63d3feb /prisoners_dilemma.pl
parentf22d7a9894d530fa2f8ceaeff3a8a52746ad7a1c (diff)
downloadwbs-553e4655f2227783051d5ea7fba65d9135310ad4.tar.gz
wbs-553e4655f2227783051d5ea7fba65d9135310ad4.tar.bz2
wbs-553e4655f2227783051d5ea7fba65d9135310ad4.zip
Prisoners Dilemma: Move rules to subdirectory
Diffstat (limited to 'prisoners_dilemma.pl')
-rw-r--r--prisoners_dilemma.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prisoners_dilemma.pl b/prisoners_dilemma.pl
index b690fbe..16d0388 100644
--- a/prisoners_dilemma.pl
+++ b/prisoners_dilemma.pl
@@ -46,5 +46,5 @@ loop(Module, ModuleState, Hist, PayedA, PayedB) :-
do(Choice, Module, ModuleState, Hist, PayedA, PayedB).
-start(Module) :- consult(Module), loop(Module, [], [], [], []).
+start(Module) :- atom_concat('rules/', Module, Path), write(Path), consult(Path), loop(Module, [], [], [], []).
start :- start(tit4tat),halt.