Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How good are you at mazes?
#36
Bacon Wrote:You guys are nubs. I'll tell you the pro way to solve this maze.

Copy image. Paste into image editting program. Select the 'fill' tool. Choose a different color. Fill in the white.

After you fill everything in, you see that this maze is bogus. You can start anywhere and get anywhere. You can go anywhere in the maze from any starting point. Thanks for wasting a minute of my life.

I'd rather use the fill tool like this:
 OMG spoilers

Pseudocode for a contiguous fill is not too complex, especially with a 2-color GIF like this where all color matches are exact. Recursively ...
Code:
fill(x,y,newcolor) {
  oldcolor=color(x,y);
  color(x,y) = newcolor;
  for (int i = 0; i<4;i++) {
      if ( color(x+cos(pi/2*i),y+sin(pi/2*i)) == oldcolor ) {
        fill(x+cos(pi/2*i),y+sin(pi/2*i),newcolor);
      }
    }
  }
}
edit: oops
Reply


Messages In This Thread
How good are you at mazes? - by Magus - 2008-08-25, 02:04 AM
How good are you at mazes? - by Berzerk - 2008-08-25, 02:07 AM
How good are you at mazes? - by Beserker101 - 2008-08-25, 02:08 AM
How good are you at mazes? - by Kalas - 2008-08-25, 02:13 AM
How good are you at mazes? - by WiseAlon32 - 2008-08-25, 07:35 AM
How good are you at mazes? - by Sign - 2008-08-25, 08:04 AM
How good are you at mazes? - by Roxas - 2008-08-25, 08:29 AM
How good are you at mazes? - by wobbufet - 2008-08-25, 09:31 AM
How good are you at mazes? - by Kalas - 2008-08-25, 10:12 AM
How good are you at mazes? - by Dyxanije - 2008-08-25, 12:44 PM
How good are you at mazes? - by Kalas - 2008-08-25, 02:21 PM
How good are you at mazes? - by Nikkey - 2008-08-25, 02:35 PM
How good are you at mazes? - by Kalas - 2008-08-25, 03:18 PM
How good are you at mazes? - by Sign - 2008-08-25, 03:19 PM
How good are you at mazes? - by Laur - 2008-08-25, 03:27 PM
How good are you at mazes? - by Kalas - 2008-08-25, 03:35 PM
How good are you at mazes? - by Ardinea - 2008-08-25, 04:39 PM
How good are you at mazes? - by Kalas - 2008-08-25, 04:44 PM
How good are you at mazes? - by Nikkey - 2008-08-25, 05:53 PM
How good are you at mazes? - by Nelon - 2008-08-25, 06:05 PM
How good are you at mazes? - by Kalas - 2008-08-25, 06:09 PM
How good are you at mazes? - by Bacon - 2008-08-25, 09:55 PM
How good are you at mazes? - by Corn - 2008-08-25, 09:59 PM
How good are you at mazes? - by Bacon - 2008-08-25, 10:20 PM
How good are you at mazes? - by jrvillarreal - 2008-08-25, 10:26 PM
How good are you at mazes? - by Bacon - 2008-08-25, 10:30 PM
How good are you at mazes? - by Sign - 2008-08-26, 05:55 AM
How good are you at mazes? - by JezzaRules - 2008-08-26, 06:30 AM
How good are you at mazes? - by Sign - 2008-08-26, 06:41 AM
How good are you at mazes? - by Nikkey - 2008-08-26, 12:53 PM
How good are you at mazes? - by Katie - 2008-08-26, 01:49 PM
How good are you at mazes? - by EngelRod - 2008-08-26, 02:06 PM
How good are you at mazes? - by Beserker101 - 2008-08-26, 02:18 PM
How good are you at mazes? - by Rain - 2008-08-26, 02:37 PM
How good are you at mazes? - by Katie - 2008-08-26, 02:44 PM
How good are you at mazes? - by Stereo - 2008-08-26, 04:37 PM
How good are you at mazes? - by randompeep - 2008-08-26, 04:46 PM
How good are you at mazes? - by Nikkey - 2008-08-26, 05:07 PM
How good are you at mazes? - by Hazzy - 2008-08-26, 07:52 PM
How good are you at mazes? - by Aggravate - 2008-08-26, 08:10 PM
How good are you at mazes? - by SuGaRnSp1C3 - 2008-08-26, 08:27 PM
How good are you at mazes? - by Katie - 2008-08-26, 08:31 PM
How good are you at mazes? - by BladeHavoc - 2008-08-27, 03:00 AM
How good are you at mazes? - by Arrg - 2008-08-27, 09:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)