Results 1 to 3 of 3
  1. #1
    Wumbo105 is offline Member
    Join Date
    Sep 2012
    Posts
    6
    Rep Power
    0

    Default 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.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,419
    Rep Power
    20

    Default Re: Coding for a Wrod Search game.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Wumbo105 is offline Member
    Join Date
    Sep 2012
    Posts
    6
    Rep Power
    0

    Default Re: Coding for a Wrod Search game.

    That's my roommate, we figured I would use this site and he'd use that one, for better results.

Similar Threads

  1. Replies: 4
    Last Post: 03-24-2011, 11:50 PM
  2. Replies: 4
    Last Post: 10-25-2010, 03:49 PM
  3. Replies: 44
    Last Post: 10-19-2009, 08:07 PM
  4. need help coding my game (inkball)
    By tornbacchus in forum New To Java
    Replies: 2
    Last Post: 06-09-2009, 04:38 AM
  5. Replies: 5
    Last Post: 08-26-2008, 03:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •