code_idx
int64 12
284
| code
stringlengths 36
24.7k
| query_type
int64 0
1
| query_code
stringlengths 7
49
| found_solution
bool 2
classes | result_explanation
stringlengths 55
33.4k
| result_variables
stringlengths 0
52
| __index_level_0__
int64 0
194k
|
---|---|---|---|---|---|---|---|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var0,a). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=a, ]
PASSED na : [Param1=c (variable) , Param2=a, ] | Var0 = c. | 0 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var0,b). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=b, ]
PASSED na : [Param1=c (variable) , Param2=b, ] | Var0 = c. | 1 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var0,c). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=c, ]
PASSED na : [Param1=d (variable) , Param2=c, ] | Var0 = d. | 2 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var0,d). | false | CHECKING na : [Param1=FreeVariable (variable) , Param2=d, ]
FAILED na : [Param1=FreeVariable (variable) , Param2=d, ] | 3 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var1,a). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=a, ]
PASSED na : [Param1=c (variable) , Param2=a, ] | Var1 = c. | 4 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var1,b). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=b, ]
PASSED na : [Param1=c (variable) , Param2=b, ] | Var1 = c. | 5 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var1,c). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=c, ]
PASSED na : [Param1=d (variable) , Param2=c, ] | Var1 = d. | 6 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(Var1,d). | false | CHECKING na : [Param1=FreeVariable (variable) , Param2=d, ]
FAILED na : [Param1=FreeVariable (variable) , Param2=d, ] | 7 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(a,Var0). | false | CHECKING na : [Param1=a, Param2=FreeVariable (variable) , ]
FAILED na : [Param1=a, Param2=FreeVariable (variable) , ] | 8 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(a,Var1). | false | CHECKING na : [Param1=a, Param2=FreeVariable (variable) , ]
FAILED na : [Param1=a, Param2=FreeVariable (variable) , ] | 9 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(a,b). | false | CHECKING na : [Param1=a, Param2=b, ]
FAILED na : [Param1=a, Param2=b, ] | 10 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(a,c). | false | CHECKING na : [Param1=a, Param2=c, ]
FAILED na : [Param1=a, Param2=c, ] | 11 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(a,d). | false | CHECKING na : [Param1=a, Param2=d, ]
FAILED na : [Param1=a, Param2=d, ] | 12 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(b,Var0). | false | CHECKING na : [Param1=b, Param2=FreeVariable (variable) , ]
FAILED na : [Param1=b, Param2=FreeVariable (variable) , ] | 13 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(b,Var1). | false | CHECKING na : [Param1=b, Param2=FreeVariable (variable) , ]
FAILED na : [Param1=b, Param2=FreeVariable (variable) , ] | 14 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(b,a). | false | CHECKING na : [Param1=b, Param2=a, ]
FAILED na : [Param1=b, Param2=a, ] | 15 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(b,c). | false | CHECKING na : [Param1=b, Param2=c, ]
FAILED na : [Param1=b, Param2=c, ] | 16 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(b,d). | false | CHECKING na : [Param1=b, Param2=d, ]
FAILED na : [Param1=b, Param2=d, ] | 17 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(c,Var0). | true | CHECKING na : [Param1=c, Param2=FreeVariable (variable) , ]
PASSED na : [Param1=c, Param2=a (variable) , ] | Var0 = a. | 18 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(c,Var1). | true | CHECKING na : [Param1=c, Param2=FreeVariable (variable) , ]
PASSED na : [Param1=c, Param2=a (variable) , ] | Var1 = a. | 19 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(c,a). | true | CHECKING na : [Param1=c, Param2=a, ]
PASSED na : [Param1=c, Param2=a, ] | 20 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(c,b). | true | CHECKING na : [Param1=c, Param2=b, ]
PASSED na : [Param1=c, Param2=b, ] | 21 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(c,d). | false | CHECKING na : [Param1=c, Param2=d, ]
FAILED na : [Param1=c, Param2=d, ] | 22 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(d,Var0). | true | CHECKING na : [Param1=d, Param2=FreeVariable (variable) , ]
PASSED na : [Param1=d, Param2=c (variable) , ] | Var0 = c. | 23 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(d,Var1). | true | CHECKING na : [Param1=d, Param2=FreeVariable (variable) , ]
PASSED na : [Param1=d, Param2=c (variable) , ] | Var1 = c. | 24 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(d,a). | false | CHECKING na : [Param1=d, Param2=a, ]
FAILED na : [Param1=d, Param2=a, ] | 25 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(d,b). | false | CHECKING na : [Param1=d, Param2=b, ]
FAILED na : [Param1=d, Param2=b, ] | 26 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 0 | na(d,c). | true | CHECKING na : [Param1=d, Param2=c, ]
PASSED na : [Param1=d, Param2=c, ] | 27 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(d,c). | true | CHECKING na : [Param1=d, Param2=c, ]
PASSED na : [Param1=d, Param2=c, ] | 28 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(c,a). | true | CHECKING na : [Param1=c, Param2=a, ]
PASSED na : [Param1=c, Param2=a, ] | 29 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(b,c). | false | CHECKING na : [Param1=b, Param2=c, ]
FAILED na : [Param1=b, Param2=c, ] | 30 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(X,c). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=c, ]
PASSED na : [Param1=d (variable) , Param2=c, ] | X = d. | 31 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(c,Y). | true | CHECKING na : [Param1=c, Param2=FreeVariable (variable) , ]
PASSED na : [Param1=c, Param2=a (variable) , ] | Y = a. | 32 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(_,c). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=c, ]
PASSED na : [Param1=d (variable) , Param2=c, ] | 33 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(c,_). | true | CHECKING na : [Param1=c, Param2=FreeVariable (variable) , ]
PASSED na : [Param1=c, Param2=a (variable) , ] | 34 |
|
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(c,X),na(Y,c). | true | CHECKING na : [Param1=c, Param2=FreeVariable (variable) , ]
PASSED na : [Param1=c, Param2=a (variable) , ]
CHECKING na : [Param1=FreeVariable (variable) , Param2=c, ]
PASSED na : [Param1=d (variable) , Param2=c, ] | X = a,
Y = d. | 35 |
12 | % Author:
% Date: 17.05.2018
% Zadanie 1
% klocek A lezy na B dla na(A,B)
na(d,c).
na(c,a).
na(c,b).
/*
1. Czy klocek d ley na klocku c?
?- na(d,c).
true.
2. Czy klocek c ley na klocku a?
?- na(c,a).
true.
.
3. Czy klocek b ley na klocku c?
?- na(b,c).
false.
4. Jaki klocek ley na klocku c?
?- na(X,c).
X = d.
5. Na jakim klocku ley klocek c?
?- na(c,Y).
Y = a ;
Y = b.
6. Para klockw (X,Y), taka e X ley na Y?
?- na(X,Y).
X = d,
Y = c ;
X = c,
Y = a ;
X = c,
Y = b.
7. Czy jaki klocek ley na c?
?- na(_,c).
true.
8. Czy jaki klocek ley pod klockiem c?
?- na(c,_).
true.
.
9. Midzy jakimi klockami ley klocek c?
?- na(c,X),na(Y,c)
| .
X = a,
Y = d ;
X = b,
Y = d.
10. Jaki klocek ley midzy dwoma innymi klockami?
?- na(X,_),na(_,X).
X = c ;
X = c.
**/
| 1 | na(X,_),na(_,X). | true | CHECKING na : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , ]
PASSED na : [Param1=d (variable) , Param2=c (variable) , ]
CHECKING na : [Param1=FreeVariable (variable) , Param2=d, ]
FAILED na : [Param1=FreeVariable (variable) , Param2=d, ]
PASSED na : [Param1=c (variable) , Param2=a (variable) , ]
CHECKING na : [Param1=FreeVariable (variable) , Param2=c, ]
PASSED na : [Param1=d (variable) , Param2=c, ] | X = c. | 36 |
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,Var5,r,Var4). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=r, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=r, Param6=FreeVariable (variable) , ] | 37 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,a,Var5,n). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=a, Param5=FreeVariable (variable) , Param6=n, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=a, Param5=FreeVariable (variable) , Param6=n, ] | 38 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,b,e,d). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=b, Param5=e, Param6=d, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=b, Param5=e, Param6=d, ] | 39 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,b,n,a). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=b, Param5=n, Param6=a, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=b, Param5=n, Param6=a, ] | 40 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,c,b,t). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=c, Param5=b, Param6=t, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=c, Param5=b, Param6=t, ] | 41 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,e,r,o). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=e, Param5=r, Param6=o, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=e, Param5=r, Param6=o, ] | 42 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,g,c,h). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=g, Param5=c, Param6=h, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=g, Param5=c, Param6=h, ] | 43 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,h,d,r). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=d, Param6=r, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=d, Param6=r, ] | 44 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,h,r,o). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=r, Param6=o, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=r, Param6=o, ] | 45 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,n,g,Var3). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=g, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=g, Param6=FreeVariable (variable) , ] | 46 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var2,r,Var4,Var3). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , ] | 47 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,Var4,c,d). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=c, Param6=d, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=c, Param6=d, ] | 48 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,Var4,o,n). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=o, Param6=n, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=o, Param6=n, ] | 49 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,a,o,n). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=a, Param5=o, Param6=n, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=a, Param5=o, Param6=n, ] | 50 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,d,m,Var4). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=d, Param5=m, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=d, Param5=m, Param6=FreeVariable (variable) , ] | 51 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,d,n,l). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=d, Param5=n, Param6=l, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=d, Param5=n, Param6=l, ] | 52 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,g,a,Var2). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=g, Param5=a, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=g, Param5=a, Param6=FreeVariable (variable) , ] | 53 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,m,Var5,g). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=m, Param5=FreeVariable (variable) , Param6=g, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=m, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=m, Param5=FreeVariable (variable) , Param6=g, ] | 54 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,n,b,l). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=b, Param6=l, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=b, Param6=l, ] | 55 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,n,r,m). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=r, Param6=m, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=r, Param6=m, ] | 56 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,o,d,n). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=o, Param5=d, Param6=n, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=o, Param5=d, Param6=n, ] | 57 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var3,t,c,o). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=t, Param5=c, Param6=o, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=t, Param5=c, Param6=o, ] | 58 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,Var3,e,d). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=e, Param6=d, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=e, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=e, Param6=d, ] | 59 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,Var3,l,d). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=l, Param6=d, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=l, Param6=d, ] | 60 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,Var5,g,o). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=g, Param6=o, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=g, Param6=o, ] | 61 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,a,o,t). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=a, Param5=o, Param6=t, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=a, Param5=o, Param6=t, ] | 62 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,h,b,n). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=b, Param6=n, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=b, Param6=n, ] | 63 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,h,t,g). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=t, Param6=g, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=t, Param6=g, ] | 64 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,o,b,a). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=o, Param5=b, Param6=a, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=o, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=o, Param5=b, Param6=a, ] | 65 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,r,d,Var2). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=d, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=d, Param6=FreeVariable (variable) , ] | 66 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,r,n,Var2). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=n, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=n, Param6=FreeVariable (variable) , ] | 67 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var4,t,Var5,Var2). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=t, Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=t, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=t, Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , ] | 68 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,Var2,d,g). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=d, Param6=g, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=d, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=d, Param6=g, ] | 69 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,Var2,g,m). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=g, Param6=m, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=n, Param6=d (variable) , Param7=o, Param8=n (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b, Param4=a (variable) , Param5=l, Param6=o (variable) , Param7=n, Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=g, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=g, Param6=FreeVariable (variable) , Param7=a, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=a, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=g, Param6=m, ] | 70 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,c,l,e). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=c, Param5=l, Param6=e, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=c, Param5=l, Param6=e, ] | 71 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,g,n,m). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=g, Param5=n, Param6=m, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=g, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=g, Param5=n, Param6=m, ] | 72 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,h,e,b). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=e, Param6=b, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=h, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=h, Param5=e, Param6=b, ] | 73 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,l,c,g). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=l, Param5=c, Param6=g, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=l, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=l, Param5=c, Param6=g, ] | 74 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,n,l,Var2). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=l, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=l, Param6=FreeVariable (variable) , ] | 75 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,n,r,l). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=r, Param6=l, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=n, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=n, Param5=r, Param6=l, ] | 76 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,Var5,r,Var4,g). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=FreeVariable (variable) , Param6=g, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=b, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=n, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=o, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=b, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=n, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=o, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=b, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=n, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=o, Param8=FreeVariable (variable) , ]
CHECKING word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED word : [Param1=r, Param2=FreeVariable (variable) , Param3=l, Param4=FreeVariable (variable) , Param5=l, Param6=FreeVariable (variable) , Param7=l, Param8=FreeVariable (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=r, Param5=FreeVariable (variable) , Param6=g, ] | 77 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,Var2,Var4,m). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=m, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=m, ] | 78 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,Var2,r,l). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=r, Param6=l, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=r, Param6=l, ] | 79 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,Var4,Var3,d). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=d, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=d, ] | 80 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,Var5,o,l). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=o, Param6=l, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=o, Param6=l, ] | 81 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,Var5,t,r). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=t, Param6=r, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=FreeVariable (variable) , Param5=t, Param6=r, ] | 82 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,e,Var3,d). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=e, Param5=FreeVariable (variable) , Param6=d, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=e, Param5=FreeVariable (variable) , Param6=d, ] | 83 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,g,Var4,o). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=g, Param5=FreeVariable (variable) , Param6=o, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=g, Param5=FreeVariable (variable) , Param6=o, ] | 84 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,m,Var2,b). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=m, Param5=FreeVariable (variable) , Param6=b, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=m, Param5=FreeVariable (variable) , Param6=b, ] | 85 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,o,l,r). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=o, Param5=l, Param6=r, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=o, Param5=l, Param6=r, ] | 86 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,r,Var2,l). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=r, Param5=FreeVariable (variable) , Param6=l, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=r, Param5=FreeVariable (variable) , Param6=l, ] | 87 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,r,m,Var4). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=r, Param5=m, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=r, Param5=m, Param6=FreeVariable (variable) , ] | 88 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,a,t,g,Var3). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=t, Param5=g, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=a, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=a, Param4=t, Param5=g, Param6=FreeVariable (variable) , ] | 89 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,b,c,Var4,o). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=c, Param5=FreeVariable (variable) , Param6=o, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=c, Param5=FreeVariable (variable) , Param6=o, ] | 90 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,b,g,Var5,r). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=g, Param5=FreeVariable (variable) , Param6=r, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=g, Param5=FreeVariable (variable) , Param6=r, ] | 91 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,b,h,n,Var2). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=h, Param5=n, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=h, Param5=n, Param6=FreeVariable (variable) , ] | 92 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,b,o,e,g). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=o, Param5=e, Param6=g, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=b, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=b, Param4=o, Param5=e, Param6=g, ] | 93 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,c,Var2,r,Var4). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=FreeVariable (variable) , Param5=r, Param6=FreeVariable (variable) , ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=FreeVariable (variable) , Param5=r, Param6=FreeVariable (variable) , ] | 94 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,c,Var4,e,a). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=FreeVariable (variable) , Param5=e, Param6=a, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=FreeVariable (variable) , Param5=e, Param6=a, ] | 95 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,c,Var5,Var4,e). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=e, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=e, ] | 96 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,c,d,Var4,e). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=d, Param5=FreeVariable (variable) , Param6=e, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=d, Param5=FreeVariable (variable) , Param6=e, ] | 97 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,c,h,m,r). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=h, Param5=m, Param6=r, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=h, Param5=m, Param6=r, ] | 98 |
|
26 | % Ex. 1 - rebusul
word(abalone,a,b,a,l,o,n,e).
word(abandon,a,b,a,n,d,o,n).
word(anagram,a,n,a,g,r,a,m).
word(connect,c,o,n,n,e,c,t).
word(elegant,e,l,e,g,a,n,t).
word(enhance,e,n,h,a,n,c,e).
crossword(V1, V2, V3, H1, H2, H3) :-
word(V1, _, A, _, B, _, C, _),
word(V2, _, D, _, E, _, F, _),
word(V3, _, G, _, H, _, I, _),
word(H1, _, A, _, D, _, G, _),
word(H2, _, B, _, E, _, H, _),
word(H3, _, C, _, F, _, I, _).
% Ex. 2 - baza de date
born(jan, date(20,3,1977)).
born(jeroen, date(2,2,1992)).
born(joris, date(17,3,1995)).
born(jelle, date(1,1,2004)).
born(joan, date(24,12,0)).
born(joop, date(30,4,1989)).
born(jannecke, date(17,3,1993)).
born(jaap, date(16,11,1995)).
% date(Day, Month, Year)
% year/2, year(+Year, -Person).
year(Year,Person) :-
born(Person, date(_,_,Year)).
% before/2
before(date(D1,M1,Y1),date(D2,M2,Y2)):-
Y1 < Y2;
Y1 =:= Y2, M1 < M2;
Y1 =:= Y2, M1 =:= M2, D1 < D2.
% older/2
older(X,Y):-
born(X, DateX),
born(Y, DateY),
before(DateX, DateY).
% Ex. 3 - labirintul
% connected(1,2).
% connected(3,4).
% connected(5,6).
% connected(7,8).
% connected(9,10).
% connected(12,13).
% connected(13,14).
% connected(15,16).
% connected(17,18).
% connected(19,20).
% connected(4,1).
% connected(6,3).
% connected(4,7).
% connected(6,11).
% connected(14,9).
% connected(11,15).
% connected(16,12).
% connected(14,17).
% connected(16,19).
connected(1,2).
connected(2,1).
connected(1,3).
connected(3,4).
% path / 2, path(X,Y) - true daca exista un drum de la X la Y
path(X, Y) :-
connected(X,Y).
path(X, Y) :-
connected(X, Z),
path(Z, Y).
% Tema: solutia pentru a elimina ciclurile este sa avem o lista de noduri vizitate
% path(X, Y, Viz)
path1(X, Y, V) :- not(member(X, V)), connected(X,Z), path1(Z, Y, [X|V]).
% Ex. 4 - reprezentarea numerelor naturale ca liste
% 0 = [], 1 = [x], 2 = [x,x]
succesor(L, [x | L]).
plus(L1,L2, LR) :- append(L1,L2,LR).
times([], _, []).
times([x | T], L2, LR) :-
times(T, L2, ListTail),
plus(L2, ListTail, LR).
% Ex. 5 - al n-lea element intr-o lista
% element_at/3, element_at(+List, +Index, -ElemDePeIndex).
element_at([H|_], 0, H).
element_at([_|T], Index, Result):-
NewIndex is Index-1,
element_at(T, NewIndex, Result).
% Ex. 6 - mutantii
animal(alligator).
animal(tortue).
animal(caribou).
animal(ours).
animal(cheval).
animal(vache).
animal(lapin).
% mutant/1
% name/2 - transforma un sir de caratere intr-o lista cu codurile lor ASCII
mutant(X) :-
animal(Y),
animal(Z),
Y \= Z,
name(Y, Ly),
name(Z, Lz),
append(Y1, Y2, Ly),
append(Y2, _, Lz),
Y2 \= [],
append(Y1, Lz, Lx),
name(X, Lx).
% exista o factorizare a listei Ly Y1 ++ Y2 = Ly
% exista o factorizare a listei Lz Y2 ++ _ = Lz
| 0 | crossword(Var0,Var1,c,l,o,r). | false | CHECKING crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=l, Param5=o, Param6=r, ]
CHECKING word : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abalone (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=l (variable) , Param6=o (variable) , Param7=n (variable) , Param8=e (variable) , ]
CHECKING word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
FAILED word : [Param1=c, Param2=FreeVariable (variable) , Param3=FreeVariable (variable) , Param4=FreeVariable (variable) , Param5=FreeVariable (variable) , Param6=FreeVariable (variable) , Param7=FreeVariable (variable) , Param8=FreeVariable (variable) , ]
PASSED word : [Param1=abandon (variable) , Param2=a (variable) , Param3=b (variable) , Param4=a (variable) , Param5=n (variable) , Param6=d (variable) , Param7=o (variable) , Param8=n (variable) , ]
PASSED word : [Param1=anagram (variable) , Param2=a (variable) , Param3=n (variable) , Param4=a (variable) , Param5=g (variable) , Param6=r (variable) , Param7=a (variable) , Param8=m (variable) , ]
PASSED word : [Param1=connect (variable) , Param2=c (variable) , Param3=o (variable) , Param4=n (variable) , Param5=n (variable) , Param6=e (variable) , Param7=c (variable) , Param8=t (variable) , ]
PASSED word : [Param1=elegant (variable) , Param2=e (variable) , Param3=l (variable) , Param4=e (variable) , Param5=g (variable) , Param6=a (variable) , Param7=n (variable) , Param8=t (variable) , ]
PASSED word : [Param1=enhance (variable) , Param2=e (variable) , Param3=n (variable) , Param4=h (variable) , Param5=a (variable) , Param6=n (variable) , Param7=c (variable) , Param8=e (variable) , ]
FAILED crossword : [Param1=FreeVariable (variable) , Param2=FreeVariable (variable) , Param3=c, Param4=l, Param5=o, Param6=r, ] | 99 |