Prolog urgent help with a bfs

chasingamy <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
I have a task to do where i must naivgate through a maze I am really stuck on
this and need it done for saturday! I have facts about the maze like where u
can go from each node, each node also has a sound level attached to it the
louder the sound the nearer to the exit. This is where i am stuck:

breadthfirst([Path | Paths], Finish, Solution) :-
		extend(Path, NewPaths),
		sortPath(NewPaths, Results),
	append(Paths, Results, Paths1),
	breadthfirst(Paths1, Finish, Solution).


I need to write the sortPath() so that it puts the path in order of sound to
find the quickest way out of the maze. Any help at all will be really
helpful as i do not know how to do this and only have a few hours left. 
Thank you for any help
-- 
View this message in context: http://www.nabble.com/Prolog-urgent-help-with-a-bfs-tp14881471p14881471.html
Sent from the Gnu - Prolog - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.