Advertisement
Guest User

Untitled

a guest
Mar 27th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.81 KB | None | 0 0
  1. word(astante,  a,s,t,a,n,t,e).
  2. word(astoria,  a,s,t,o,r,i,a).
  3. word(baratto,  b,a,r,a,t,t,o).
  4. word(cobalto,  c,o,b,a,l,t,o).
  5. word(pistola,  p,i,s,t,o,l,a).
  6. word(statale,  s,t,a,t,a,l,e).
  7.  
  8. crossword(V1, V2, V3, H1, H2, H3) :-
  9.   word(V1, _, A, _, _, _, _, _) = word(H1, _, A, _, _, _, _, _),
  10.   word(V1, _, _, _, B, _, _, _) = word(H2, _, B, _, _, _, _, _),
  11.   word(V1, _, _, _, _, _, C, _) = word(H3, _, C, _, _, _, _, _),
  12.   word(V2, _, D, _, _, _, _, _) = word(H1, _, _, _, D, _, _, _),
  13.   word(V2, _, _, _, E, _, _, _) = word(H2, _, _, _, E, _, _, _),
  14.   word(V2, _, _, _, _, _, F, _) = word(H3, _, _, _, F, _, _, _),
  15.   word(V3, _, G, _, _, _, _, _) = word(H1, _, _, _, _, _, G, _),
  16.   word(V3, _, _, _, H, _, _, _) = word(H2, _, _, _, _, _, H, _),
  17.   word(V3, _, _, _, _, _, I, _) = word(H3, _, _, _, _, _, I, _).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement