Question: Write c++ program: You are only allow to use arrays, 2d arrays, pointers, function only user define, filing operations reading writing Don not use any

Write c++ program:

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:

  1. Easy level contains word in single row or single column.
  2. Intermediate Level contains word in forward and backward direction as well as single row and single column.
  3. Hard level contains word in forward, backward directions and in diagonals.
  • High Record
  • Exit

Basic Functionality:

  1. 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

  1. Board Display

Display the board on console

  1. User record Input

Take the name of the user in character array.

  1. Get word as input:

Ask player to enter a word.

  1. Verify the word

Verify that word from the dictionary.txt which contain multiple word.

  1. 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)

  1. Pause Game

It will save the current state of the board (2D character array) in a Pausedgame.txt file.

  1. Load Game

Read 2D character array from Pausedgame.txt.

  1. Save high record

Store first five highest record in a text file Highrecord.txt.

  1. Display high record

Read record from Highrecord.txt and display it on console.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!