diff options
-rw-r--r-- | grudger.pl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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). |