all_distinct
This commit is contained in:
parent
3446fdd913
commit
e3795d6739
1 changed files with 5 additions and 0 deletions
5
metro.pl
5
metro.pl
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue