Pseudo code for wordsearch java

Feb 3rd, 2012
Studypool Tutor
Price: $20 USD

Tutor description

A popular diversion in the United States, “word find” (or “word search”) puzzles ask the player to find each of a given set of words in a square table filled with single letters. A word can read horizontally (left or right), vertically (up or down), or along a 45 degree diagonal (in any of the four directions) formed by consecutively adjacent cells of the table; it may wrap around the table’s boundaries, but it must read in the same direction with no zigzagging. The same cell of the table may be used in different words, but, in a given word, the same cell may be used no more than once. Write a computer program for solving this puzzle.

Word Count: 1164
Showing Page: 1/5
WordFind STARTDECLARATIONDeclare a matrix as _puzzle to keep all the letter sof the wordDeclare an array as _words which would keep all the words read from the fileDeclare string as _word2Find to hold the word to find in the puzzle LOGIC1. Read the words from file in to _words array2. Determine the size of the matrix puzzle3. Call InitGameBoard4. Ask the user to enter the word he/she wants to find in the puzzle and store it in _word2Find.5. Call SearchLeft to Search the _word2Find in left direction, if found goto Step 146. Call SearchRight to Search the _word2Find in right direction, if found goto Step 147. Call SearchUp to Search the _word2Find in up direction, if found goto Step 148. Call SearchDown to Search the _word2Find in down direction, if found goto Step 149. Call SearchLeftUp to Search the _word2Find in diagonal up-left direction, if found goto Step 1410. Call SearchLeftDown to Search the _word2Find in diagonal down-left direction, if found goto Step 1411. Call SearchRightUp to Search the _word2Find in diagonal up-right direction, if found goto Step 1412. Call SearchRightDown to Search the _word2Find in diagonal up-right direction, if found goto Step 1413. Print _word2Find not found in the _puzzle.14. Program ends.WordFind ENDInitGameBoard START1. For each word in the array _words1.1 generate a random number between 1 and 8 to decide the direction of the

Review from student

Studypool Student
" Solid work, thanks. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1831 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors