Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to prolog...

Status
Not open for further replies.

Zhaker

Programmer
Oct 2, 2001
1
AU
Hi, I have been using prolog, and can do certain questions, but I have a question..

Say I have this problem:

+-------------------+
% | Flat 5 | | Flat 6 |
% |--------| |--------|
% | Flat 3 | | Flat 4 |
% |--------| |--------|
% | Flat 1 | | Flat 2 |
% +-------------------+

and I want to say that there is something that exits in the middle, flat 3 and flat 4, how do I say that item exists in the middle. I have got nextto and opposite working, where next to, s that flat 1 is next to flat 3 say and that opposite is flat 1 and flat 2, but I am sorta confused on how to place the middle.....

any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top