Access Millions of academic & study documents

Pseudo code for wordsearch java

Content type
User Generated
Subject
Computer Science
Type
Homework
Showing Page:
1/5

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/5

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/5

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 5 pages?
Access Now
Unformatted Attachment Preview
WordFind START DECLARATION Declare a matrix as _puzzle to keep all the letter sof the word Declare an array as _words which would keep all the words read from the file Declare string as _word2Find to hold the word to find in the puzzle LOGIC 1. Read the words from file in to _words array 2. Determine the size of the matrix puzzle 3. Call InitGameBoard 4. 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 14 6. Call SearchRight to Search the _word2Find in right direction, if found goto Step 14 7. Call SearchUp to Search the _word2Find in up direction, if found goto Step 14 8. Call SearchDown to Search the _word2Find in down direction, if found goto Step 14 9. Call SearchLeftUp to Search the _word2Find in diagonal up-left direction, if found goto Step 14 10. Call SearchLeftDown to Search the _word2Find in diagonal down-left direction, if found goto Step 14 11. Call SearchRightUp to Search the _word2Find in diagonal up-right direction, if found goto Step 14 12. Call SearchRightDown to Search the _word2Find in diagonal up-right direction, if found goto Step 14 13. Print _word2Find not found in the _puzzle. 14. Program ends. WordFind END InitGameBoard START 1. For each word in the array _words 1.1 generate a random number between 1 and 8 to decide the direction of the ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4

Similar Documents