summaryrefslogtreecommitdiff
path: root/mistrust_tit4tat.pl
blob: ebea1cb8997d3bb5354601c83e8d80774257f37b (plain)
1
2
3
4
5
6
% Syntax: MODULE(UserDecisionHistry [in], ModuleDecision [out])

% Use opponents last decision
mistrust_tit4tat([Last|_],Last).
% Fallback to defect if history is empty.
mistrust_tit4tat([],d).