1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| rules_zebraproblem = lall( (eq, (var(), var(), var(), var(), var()), houses), (membero,('Englishman', var(), var(), var(), 'red'), houses), (membero,('Spanish', var(), var(), 'dog', var()), houses), (membero,('Japanese', 'painters', var(), var(), var()), houses), (membero,('Italian', var(), 'tea', var(), var()), houses), (eq,(('Norwegian', var(), var(), var(), var()), var(), var(), var(), var()), houses), (left,(var(), var(), var(), var(), 'white'), (var(), var(), var(), var(), 'green'), houses), (membero,(var(), 'photographer', var(), 'snail', var()), houses), (membero,(var(), 'diplomat', var(), var(), 'yellow'), houses), (eq,(var(), var(), (var(), var(), 'milk', var(), var()), var(), var()), houses), (membero,(var(), var(), 'coffee', var(),'green'), houses), (next,('Norwegian', var(), var(), var(), var()), (var(), var(), var(), var(), 'blue'), houses), (membero,(var(), 'violinist','orange juice', var(), var()), houses), (next,(var(), var(), var(), 'fox', var()), (var(), 'doctor', var(), var(), var()), houses), (next,(var(), var(), var(), 'horse', var()), (var(), 'diplomat', var(), var(), var()), houses), (membero,(var(), var(), var(), 'zebra', var()), houses), (membero,(var(), var(), 'mineral water', var(), var()), houses), )
|