Create a c program that will show a maze

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

Program needs to be created in C please. Type out answer aswell to avoid iledgiable writing. Thank you.

Basic requirements

Create a C program that will show a maze in the terminal window and will show a mouse walking through the maze attempting to locate the exit door (the cheese).

The maze is a rectangle. There is a wall of X's that mark the enclosing four walls of the maze. On the left vertical wall there is an opening which is the entrance. On the right vertical wall there is an opening that is the exit. There are no openings in the walls except these two. The interior of the maze is filled with X's and blanks. The mouse walks on the blanks and is not allowed to step on X's.

The mouse can move in any of the four directions (North, East, South, West) one step at a time provided the destination cell is not blocked. The mouse cannot move in a diagonal direction. Each time the mouse takes one step he turns back and places a mark on the cell where he was. That means he is marking his trail. A marked cell is not blocked, and so, the mouse may re-travel over marked cells in the future if necessary.

The inputs to this "game" (maybe we should call it a simulation) are these.

== Density (what percent of the interior is filled with X's)

== Delay (what is the time interval between each step taken by the mouse)

This is a slow mouse. He pauses between step. The user will set how much time the mouse spends thinking between each step.

A maze can have a density of 0%. In that case the interior of the rectangle has no walls. If a maze has a density of 90% then 90% of the interior of the maze is blocked. The user has to input the amount of density of the maze as a whole number. An input of 23 means the maze has a density of 23%.

Reference no: EM132107286

Questions Cloud

Design and implement an application that plays the hi-lo : Consider using two do loops to solve this problem although there are many other correct ways if you prefer another solution.
Genetically modified foods or gmo : 1) What are some of the advantages/disadvantages of Genetically Modified Foods or GMO's and how has it been helpful or unhelpful.
Reads data from a file until the end of the file : This program will keep track of both good and bad (too small and too large) parts and ONLY STOP once the end of the file is found.
Rate of alcohol absorption or breakdown : What other factors influence the rate of alcohol absorption or breakdown that could have affected Max's BAC?
Create a c program that will show a maze : Create a C program that will show a maze in the terminal window and will show a mouse walking through the maze attempting to locate the exit door.
Write a program that converts temperature : Write a program that converts temperature from Celsius to Fahrenheit or vice versa, depending on user's input.
Should michael take a multivitamin and mineral supplement : A) Should Michael take a multivitamin and mineral supplement "just for the insurance"? Why or why not?
Why program objectives needs to be defined : Why Program Objectives needs to be defined in details prior to program and Project Plan? Clarify the statement with proper explanation.
Print each row of the matrix in descending order : Ask the user for the name of a file, read the name of the file from standard input. The first row of the file contains the number of rows and columns in file.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  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

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

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

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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