Design for storing the maze layout

Assignment Help C/C++ Programming
Reference no: EM132016

1. Design and implement a C++ program for the given specification.

2. Show a structure diagram for your program using the program provided on the network.

To complete this program it is necessary to have a good design for storing the maze layout. Good programs store data about a thing in a way that closely resembles the thing itself.

The maze is on a grid of 16 x 16 squares, so information about the array should be in a 16 x 16 array. For each square, the following information needs to be stored:

- For each of the 4 walls on the square, a Boolean variable is needed to represent whether the wall is present (true) or absent (false)

- A Boolean variable is needed to represent whether the robot has visited this square. This will allow the program to display the robot's path through the maze.

- An integer is needed to store the smallest number of steps to reach the square from the start of the maze. This is used to solve the maze.

Design and write a program that:

1. Uses the given Windows graphics system.
2. Designs and draws a random maze on a 16 x 16 grid.
3. Solves the maze by calculating the number of steps required to reach all accessible squares.
4. Allows the user to use the computer mouse to move a robot through the maze.
5. Provides some buttons that the user can click on to operate the program to:
a) Start a new game.
b) Solve the maze.
c) Restart the existing game.
d) Exit the program.

Reference no: EM132016

Questions Cloud

Analysis of trips consistency : Analysis of TRIPS consistency, based upon the current law and proposed legislation
Particular process in any organization : Write a two page summary on a particular process in any organization.
Economic costs and benefits for project : Economic costs and benefits for project
Quantitative analysis for decision making class : Quantitative Analysis for decision making class
Design for storing the maze layout : Design and implement a C++ program for maze layout
Create a database using oracle packaged procedure : Create a database using Oracle packaged procedure
Quantitative analysis for decision making class : Quantitative analysis for decision making class
Review the country political economy : Political Economy and Foreign Direct Investment - Review the country's political economy
Analyze an existing company for operation strategy : Analyze an existing company for Operation strategy and one under Supply Chain Strategy

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a template class

Create a template class, SVector, that implements a constructor

  Write a program that inputs a dollar amount to be printed

Write a program that inputs a dollar amount to be printed on a check and then prints the amount in check-protected format with leading asterisks if necessary

  Calculate the trajectory of a soccer ball

Write a program to calculate the trajectory (flight path) of a soccer ball

  Computer programming using c language lab

Computer programming using c language lab

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

  Prepare a businesspartner

Prepare a BusinessPartner class that contains a company name, first name and a telephone number.

  Calculation of mortgage interest rates

Instruction of pointers and the calculation of mortgage interest rates.

  Design a simple game of blackjack

Prepare a simple game of blackjack using object oriented programming.

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd