Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

I need help
Hello

I hope someone can help me with this problem. I've got facts:

room(room1).
room(room2).
room(room3).
room(room4).
etc.

door(room1, room2).
door(room1, room3).
door(room1, room4).
door(room3, room4).
etc.

location(thing_a, room1).
location(thing_b, room2).
etc.

start(room1).

And I've to write a predicate move/1 witch locates a thing and moves
it to the start. I've written a similar program (like Nani search),
where I can walk around the rooms and move things but how can I make
the program to to the same? :)

Thanks,
Risto


Report this thread to moderator Post Follow-up to this message
Old Post
nope
12-19-04 08:56 AM


Re: I need help
nope escreveu:
> Hello
>
> I hope someone can help me with this problem. I've got facts:
[Nani search like snippet cut out]

> And I've to write a predicate move/1 witch locates a thing and moves
> it to the start. I've written a similar program (like Nani search),
> where I can walk around the rooms and move things but how can I make
> the program to to the same? :)
>
From the perfunctory information you gave, it may be your instructor
expects you make use of some concept [s]he might just have discussed.

Otherwise, you'll have to figure out Prolog to do an extensive search
from start to the room that has the thing and do the walk you already
know how.

--
Cesar Rabak



Report this thread to moderator Post Follow-up to this message
Old Post
Cesar Rabak
12-20-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Prolog archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:06 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.