Results 1 to 3 of 3
Thread: Coding for a Wrod Search game.
- 09-27-2012, 09:34 PM #1
Member
- Join Date
- Sep 2012
- Posts
- 6
- Rep Power
- 0
Coding for a Wrod Search game.
Hey guys, I got a crazy one here, and I'm really lost.
Basically, what I have to do is read in a .txt file that looks like this:
10 10
WVERTICALL
ROOAFFLSAB
ACRILIATOA
NDODKONWDC
DRKESOODDK
OEEPZEGLIW
MSIIHOAERA
ALRKRRIRER
KODIDEDRCD
HELWSLEUTH
10
WEEK
FIND
RANDOM
SLEUTH
BACKWARD
VERTICAL
DIAGONAL
WIKIPEDIA
HORIZONTAL
WORDSEARCH
The first line dictates the number of rows and columns the word search must be (in this case 10x10), followed by the word search itself. The next 10 says how many hidden words there are in the search, and then it is followed by each word that must be found.
The output result that I must print out has to say "(whatever word) was found at (coordinate x,y)", the coordinate being where the first letter of the word was found.
So, I know this has to do with arrays, and I'll have to search the array for the specified items, but I have no idea how to do that at all. Especially since words can be found horizontal, vertical, diagonal, etc.
Thanks.
- 09-27-2012, 09:39 PM #2
Re: Coding for a Wrod Search game.
Why do they call it rush hour when nothing moves? - Robin Williams
- 09-27-2012, 09:45 PM #3
Member
- Join Date
- Sep 2012
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
Any advice - java search algorithms which accept multiple search parameters
By Alfster in forum New To JavaReplies: 4Last Post: 03-24-2011, 11:50 PM -
does gui coding in netbeans is just the same with coding without nebeans?
By maizuddin35 in forum NetBeansReplies: 4Last Post: 10-25-2010, 03:49 PM -
Have been stuck up coding the GUI for Memory Card Game
By Galore in forum New To JavaReplies: 44Last Post: 10-19-2009, 08:07 PM -
need help coding my game (inkball)
By tornbacchus in forum New To JavaReplies: 2Last Post: 06-09-2009, 04:38 AM -
make search function ike eclipse search in window->preference
By i4ba1 in forum Advanced JavaReplies: 5Last Post: 08-26-2008, 03:43 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks