Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Make a 20x20 maze in c++ with the char * have 4 randomly generated lattes in maze and 4 randomly generated coffee in maze and
Make a 20x20 maze in c++ with the char * have 4 randomly generated lattes in maze and 4 randomly generated coffee in maze and one randomly generated monster in maze these are hidden.
Have randomly generated player in game
P represents player and replaces * in that spot then updates the maze and position of player after each input of direction the player enters followed by outputting do you want to continue after each input if no program stops otherwise continues. If player finds latte prints out found latte counts up and program ends when he finds all 4 and prints out you win. If coffe found prints out game over and ends program. If monster is found prints found monster and still prompt do you want to continue .
For examples and further help use the example in the photos I have given below and further hep with details.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started