[Oz] The Oz Minesweeper
Erik Klintskog
erik at sics.se
Tue Oct 10 07:14:18 CEST 2000
Peter Van Roy wrote:
> Dear Mozart users,
>
> Raphael Collet has programmed a version of the Minesweeper game
> in Mozart. The Oz Minesweeper has a digital assistant that can
> make deductions about the state of the playing field and that
> can make safe moves automatically.
>
> Check it out at http://www.info.ucl.ac.be/~raph/minesweeper/
>
> The complete Minesweeper program is just 450 lines of Oz code.
> It uses the power of Mozart's constraint solver and the QTk
> user interface design tool.
>
> Peter Van Roy
>
Nice, finally some games in Mozart. Do you have the source available?
I'm interested to see how you used QTk and when start talking of lines
of
code, I want to see them.
I got the impression that the rules lacked something. There where
occasions
where the auto-player stopped, but I could continue.
An interesting problem would be to place the mines such that the "sweep"
is
always possible. The most annoying thing is when you're almost done with
a
large map just to find a corner where the information is too scarce. You
end up
guessing instead of solving.
/Erik
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list