I have the Prolog rule:
superAbility(M1,A,M2) :-
monsterAbility(M1,M1A),
ability(M1A,M1T),
monster(M2,M2T),
typeEffectiveness(M1T,M2T,A).
Where M1A
is Monster1 Ability, M1T
is Monster1 Type and so on
I call the rule using: superAbility(squirtle,A,charmander)
and get the results
A = ordinary
A = super
A = super
A = ordinary
How do I alter my rule so that I only return when A = super?
A
toRequiredEffectiveness
and add the goalRequiredEffectiveness = super
before the last line. – Isabelle Newbie