summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grudger.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/grudger.pl b/grudger.pl
index a2792a9..5337e49 100644
--- a/grudger.pl
+++ b/grudger.pl
@@ -2,6 +2,6 @@
% that move defects forever (he does not forgive).
% http://euler.fd.cvut.cz/predmety/game_theory/lecture_repeat.pdf
-grudger([], c) :- !.
-grudger([c|Tail], c) :- grudger(Tail, c),!.
-grudger(_, d).
+grudger([], c).
+grudger([d|_], d).
+grudger([c|Tail], Decision) :- grudger(Tail, Decision).