Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Making a simple Word Search in java that will have a WordSearch class (hopefully involving some OOP concepts) and the Main class, which will have

Making a simple Word Search in java that will have a WordSearch class (hopefully involving some OOP concepts) and the Main class, which will have the main method and instructions on how to play this game, plus a menu of options that will have:

a) generate your own word search (this will allow the user to enter as many words as they like, and they can stop entering words once they have typed in 'e' or 'q' to exit/quit adding more words. The input of words will go into an Array List, and then once the user stops adding words, convert this Array List to a 1-Dimensional Array, and pass this onto the createWordSearch method as a parameter (this method will be created in the WordSearch class. Additional methods to generate a word search based on user input can also be used, but it should be easy to understand and easy to follow along. Note: you might need to adjust the size of the word search to accommodate a long list of words, lengthy words, etc. Limit the no. of tries of placing the word to 100, so if one tries placing the word over 100 times, then exlcude this word, and show the message that this word has been removed or something)

After this, the menu of options should appear again, asking the user what they want to do now.

b) printing the word search (this will simply output the word search, and will have the user`s words hidden in there to find. When displaying the word search, vertically and horizontally, there will be numbers (ex: 0 1 2 3 4...etc go up till the width and height of the grid) and this will be the coordinates. Note that the user must create a word search first in order to do anything else, so if the user enters this option before creating a word search, display an error message and prompt them the menu of options once again)

After this, the menu of options should appear again, asking the user what they want to do now.

c) Play the official word search game (there will be at least one or two methods for this...this option will give the user the opportunity to play word search. The user will be shown the word search, and right under will be the list of words for them to find. The user will have to enter a word they found, followed by its coordinate locations. The program will then verify that this word and location match to any of the words and their locations in the word grid, if it does match, then the user will have a message saying they found the word at this location to them on the screen, followed by the word grid popping up once again, and right under the grid will be updated list of words that will not contain the word the user just found. The user will have to find all words, or they can simply type in 'q' to quit the game.)

After this, the menu of options should appear again, asking the user what they want to do now.

d) displaying solutions to the word search (there are two ways this should be done: 1. display the grid of solutions, where all random letters will be replaced with an X or blank space, only showing the actual words entered by the user. 2. right under the grid of solutions, each word should be displayed (in a table format..ex: 5 words with their coordinate location, and leave some space for five more words right beside the first five words along with the location) along with their coordinate location (ex: apple [ (start width, start height) , (end width, end height) ] as numbers)

e) an exit the program option where the program will end after displaying a thank you message.

I need this by Wednesday morning, Jan 23, 2018 for something really important. Thank you!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Third International Conference Achids 2011 Daegu Korea April 2011 Proceedings Part 2 Lnai 6592

Authors: Ngoc Thanh Nguyen ,Chong-Gun Kim ,Adam Janiak

2011th Edition

3642200419, 978-3642200410

More Books

Students also viewed these Databases questions