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

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Create a template class

Create a template class, SVector, that implements a constructor

  Develop a two dimensional interactive game

The player starts as a disk, but can "morph" (that is expand and contract) in selected directions

  Prepare a linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Prepare an arbitrary sinusoidal waveform

Create a program to compute the derivative of an arbitrary input function, with arbitrary duration and arbitrary limits

  Prepare an accounting for a dorm''s kitchen

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

  Operating system and cpu scheduling

Operating System and CPU Scheduling

  Write a program using vectors and iterators

Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulating it mathematically, eventually outputs your entire phone number. The d..

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