//flex table opened by JP

Click to See Complete Forum and Search --> : Maze in Oz


Tony2005
05-24-2006, 07:07 PM
First of all have any of you heard of Mozart-Oz (http://www.mozart-oz.org/) ? Thought not...

Any way for one of my assignments at Uni I had to build (in Oz) a program that randomly generates a maze then solves it without using iteration (recursion only); and I've finally finished (Have a look at the picture provided)

As soon as it has been marked abd verified I will post the code for it (334 lines)

Tony :t

jjinno
06-03-2006, 04:22 PM
Sweet!

Dont you just love how many wacky languages there are out there.... although from the Wiki of the Mozart-OZ language, it seems quite capable.

stringplucker
06-19-2006, 08:40 PM
Thats pretty neat Tony2005. How did you solve the maze? I assume you used a form of best first search? Maybe a depth first search? Alhtough breadth first would give you a shorter path...

I hadn't ever heard of Mozart-Oz. Seams pretty cool. Its almost like having a logic / inference driven OS at your hands. If you like wacky languages, you should check out Piet ( http://en.wikipedia.org/wiki/Piet_programming_language ) names after Piet Mondrian a abstract expressionist artist. Its basically programming as an art form, definately esoteric.

Tony2005
06-20-2006, 08:18 AM
Nope it's all random, randomly generates a a perfect maze(by that I mean it is possible to get from 1 cell to any other cell) and randomly solves it. I'll post the course code as soon as I can

Tony2005
07-19-2006, 11:07 AM
Well I got an A for it - well done to me!

You will need to remove the .txt of the file so its just maze.oz

To run it you will need emacs (http://www.gnu.org/software/emacs/) and Oz (http://www.mozart-oz.org/download/view.cgi)

Double click the file then click on "Oz" menu at the top then on "Feed Buffer" and away you go!

Let me know what you think