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

  Write a c program that will calculate the gross pay of a

write a c program that will calculate the gross pay of a set of employees.for each employee the program should prompt

  List other ideas you have about improving the inner loop

If you need to optimize execution speed by maximizing parallel execution of a matrix multiply, list other ideas you have about improving the inner loop.

  Compute a program that calculates three resistance inputs

C language, compute a program that calculates three RESISTANCE inputs, and gives you the total resistance in OHMS. Like this, the total resistance is _____ ohms. These are three parallel circuits so the formula would be (1/R1 + 1/ R 2 +  1/ R 3 )  -1

  Create a text-based, menu-driven program

Create a text-based, menu-driven program that allows the user to choose whether to add, subtract, multiply or divide two numbers. The program should then input two double values from the use

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  The factorial of a positive integer n, denoted by n!

Write a program that computes the sequence of factorial values: 1! = 1, 2! = 2, 3! = 6, 4! = 24, 5! = 120, 6! = 720, ....

  Write a program to meet the specifications of the companys

Write a program to meet the specifications of the companys request. Comments and headers to explain processing that is not obvious

  Write a small program to simulate a raffle

Write a small program to simulate a raffle (a gambling game) for a group with 100 members. You can simply identify each member with a no-duplicated ID numbers from 01 to 100. A number ticket with a positive 4-digits integer number will be randomly cr..

  Object oriented app development

Object Oriented App development

  Give a complete pseudo-code description of the recursive

Give a complete pseudo-code description of the recursive merge-sort algorithm that takes an array as its input and output.

  Write program which prompts user to enter numbers

Write down the program which prompts the user to enter numbers, findsout how many positive and negative values have been entered, and calculates sum and average of numbers entered.

  Create an app that will play an audio file backwards

Your group has been tasked with creating an app that will play an audio file backwards - Because this app is likely to be used on a mobile device, your group figures that this algorithm should use as little memory and space as possible.

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