all_distinct

This commit is contained in:
rhiannon morris 2024-11-25 16:09:18 +01:00
parent 3446fdd913
commit e3795d6739

View file

@ -18,6 +18,11 @@ solution(Vars) :-
Bat, BrokenBottle, Gun, Knife, Sword,
Phone, Purse, Suitcase, Violin, Watch],
Vars ins 1..5,
all_distinct([Nineteen, Twentyone, Twentyfive, Thirty, Thirtyeight]),
all_distinct([Collision, Explosion, Kidnapping, Robbery, Vandalism]),
all_distinct([Hat, Jacket, Sunglasses, Tie, Turtleneck]),
all_distinct([Bat, BrokenBottle, Gun, Knife, Sword]),
all_distinct([Phone, Purse, Suitcase, Violin, Watch]),
Hat = Purse,
Sunglasses = Explosion,
Jacket = Bat,