Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

  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

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

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

=+Trainers from headquarters? Local trainers? Independent trainers?

Answered: 1 week ago