Introduction a word search puzzle consists of a grid of


Introduction

A Word Search Puzzle consists of a grid of letters, with words hidden inside horizontally, vertically and diagonally. The player's task is to find all the words hidden in the grid.
Your task for this assignment is to create a Word Search Puzzle generator, and a program that lets the user play the game against the clock.
An example Word Search Puzzle can be seen below.

380_1.jpg

In our version, we will ask the user to pick a category from a list, create a word search puzzle based on that category and then let them type words they can see in the grid. If they find all words before a timer reaches zero, they win!


3 of 14
Specification
Your program should have the following features
1. Word Search Generation
a) Store a list of words on specific subjects (animals, colors, planets etc.)
b) Generate a 2D grid of letters, containing at least 6 words from a category found in (la). The size of the 2D grid should be definable (minimum 12x12).


o The words should be randomly placed within the grid
i. Horizontally (40% of the time)
ii. Vertically (40% of the time
iii. Diagonally (20% of the time) Diagonal words can be oscending or descending.
c) Ensure words do not overwrite one another.
2. Word Search Game
a) Welcome user to the program.
b) Present the user with a choice of categories from (la).
c) Ask user to type in words that they can see in the grid
d) Highlight or remove correctly guessed words from the grid
e) Show message to user if time limit is reached, or all words found
For (2e). You do not need to end the game exactly when timer reaches 0, only when user types in o word after timer hos reoched 0.
Coding

• Programming Proficiency
• Commenting / Formatting
Programming proficiency refers to how well your program runs, how it looks etc. Morks are oworded for impressing the assessor here.
Commenting /formatting morks are oworded for cleor documentation of your code through oppropriate comments, correct indentation etc.

Implementation Guide
While you are free to code your program any way you want, it is recommended you follow this implementation guide especially if you are unsure what order to develop your program.
Stage 1- Grid Initialisation
The appendix contains a shell of a program that you can use as a starting point for this assignment. The code will create a 2D character array and fill it with '.' characters.
The first stage for your assignment should be to initialise a 20 array containing a random grid of letters from the alphabet, and print the grid with appropriate formatting.
By the end of this stage your program should generate output similar to the following:


2128_111111.jpg


Attachment:- Puzzleassignment.zip

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Introduction a word search puzzle consists of a grid of
Reference No:- TGS01494675

Now Priced at $50 (50% Discount)

Recommended (93%)

Rated (4.5/5)