Question
You are only allow to use arrays, 2d arrays, pointers, function only user define, filing operations reading writing Don not use any built-in/ library function
You are only allow to use arrays, 2d arrays, pointers, function only user define, filing operations reading writing
Don not use any built-in/ library function and strings etc
Word Search Puzzle
Introduction:
Word Search Puzzle is a word game that consists of the letters of words placed in a grid, which usually has a rectangular or square shape. The objective of this puzzle is to find a user defined word in the grid. The words may be placed horizontally, vertically, or diagonally. Words can be available straight forward in rows or columns, in reverse order of letters and maybe straight or reversed diagonally depending on the difficulty.
Main Features: (Menu Base Program)
- New Game
- Resume Game
- Levels (Easy , intermediate ,Hard)
Note:
- Easy level contains word in single row or single column.
- Intermediate Level contains word in forward and backward direction as well as single row and single column.
- Hard level contains word in forward, backward directions and in diagonals.
- High Record
- Exit
Basic Functionality:
- Read Board
Read 2D character array from board.txt file that will be used as board which contains different characters.
Example:
board.txt
any text
NOTE: these example is for your understanding actual file dont have blank spaces. E.g: JFSJRPDKXSERNFD
- Board Display
Display the board on console
- User record Input
Take the name of the user in character array.
- Get word as input:
Ask player to enter a word.
- Verify the word
Verify that word from the dictionary.txt which contain multiple word.
- Find word
It will find the user entered word in the board (2D character array). The word may be in a row, column, diagonal or reverse diagonal. The word may be is its order or in reverse order on board.
Example:
HAT (in order word)
TAH (reverse order word)
- Pause Game
It will save the current state of the board (2D character array) in a Pausedgame.txt file.
- Load Game
Read 2D character array from Pausedgame.txt.
- Save high record
Store first five highest record in a text file Highrecord.txt.
- Display high record
Read record from Highrecord.txt and display it on console.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started