Min-Max
better(P1,V1,P2,V2,P1,V1, CurrentPos):-
max(CurrentPos),
V1>V2, !.
better(P1,V1,P2,V2,P1,V1, CurrentPos):-
min(CurrentPos),
V1<V2, !.
better(P1,V1,P2,V2,P2,V2,CurrentPos).
Previous slide
Next slide
Back to first slide
View graphic version