File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Matrix WordSearch solution? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Matrix WordSearch solution?" Watch "Matrix WordSearch solution?" New topic
Author

Matrix WordSearch solution?

Ollie Dee
Greenhorn

Joined: Jan 06, 2013
Posts: 10

I am trying to write a java program to solve a word search puzzle inside a 12 by 12 dimentional matrix searching in all directions. Horizontal, Vertical and so on, and after many attempts I can not seem to write a solution, could anyone help me with this please. I will attach my code with link if anyone wants to have a look. Thanks. Currently using eclipse..Dropbox public

I am trying to read these words in from a text file which also contains the matrix.

GHOST
SPIDER
CANDY
CROW
BLOOD
BROOM
PATCH
HOUSE
ORANGE
BATS
MASK
FANGS
APPLE
TRICK
PUMPKIN
NECK
PARTY
MUMMY
BOO
CAT

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
some years back there was a word search puzzle in the JavaRanch newsletter.

if you search the 'Programming Diversions' forum, you might get a nice surprise.
Ollie Dee
Greenhorn

Joined: Jan 06, 2013
Posts: 10

Thanks a lot Michael...I found it there.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Matrix WordSearch solution?
 
Similar Threads
Anyone with experience with dot matrix printing?
e-Matrix platform why use
How do I print a raw text file to any given printer port
Regarding ternary operator
Assign an Array to an Array Element