Hey Onion2k! found a bug in your wordsearch

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Hey Onion2k! found a bug in your wordsearch

Post by nielsene »

http://ooer.com/wordsearch/foobar/index.php?x=56&y=126

the word "too" was part of found along a diag "toot", but only one direction "too" substring was accepted.

Nice work though; let me waste more time :)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Yeah, I already knew about that bug. The code doesn't actually check the board to see if you've found the right word, it checks an array on word places that's generated when the board is created. I only wrote it as a quick hack to create one wordsearch a while ago, I'll probably never get around to fixing it.

I've been working on PHPhoto 0.3 this weekend though.. It's awesome. Adobe are going to cry when I release it*.

* Possibly not.
Post Reply