in reply to Detect Pixel Color on WinXP

This isn't related directly to Perl, but I was researching Minesweeper with the idea of creating a program like that, and I discovered that someone proved it to be an NP-complete problem (external link). If you manage to make an efficient algorithm for it, you'll also be able to break a whole lot of current encryption algorithms.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Detect Pixel Color on WinXP
by bunnyman (Hermit) on Sep 16, 2003 at 14:26 UTC

    An /efficient/ algorithm isn't needed, just one that is good enough for the available hardware.

    There are a few programs like this already out there. They are able to solve the "Expert" mode in 1 or 2 seconds most of the time.