Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a matlab script for the following 4) Write a script that will simulate playing the game. The script should at least do the following

write a matlab script for the followingimage text in transcribed

4) Write a script that will simulate playing the game. The script should at least do the following things: a. Should allow the user to replay the game as many times as they like (without having to rerun the script) - while loop b. Proide a default value for the player stats variable, but it should ALSO ask the user ifthey d like to enter custom stats and use that instead for player health and c. Ask the user how large they would like to make the "maze and use that when d Ask the user how many monsters they would like and use that value when they e. Provide two "ways" to play the game, where the user gets to choose which "style damage they create the maze create the maze they want i One way should be an auto-play feature, where the game completely plays itself unless the user has to enter a number for a monster fight The second way should prompt the user EACH time a SINGLE move has been made, to ask whether or not they are ready to continue ii TIPS: Here is an example of how you might simulate "Playing" the game in the script. This is not a complete example, it is only meant to illustrate how to use the functions that you have created. create mazefvst algorithm random move second algorithn player [5 5] monsters mcreate maze(maze size, monster maze, player, game_over] random movemaze, player) Keep repeating statement above until game over variable indicates that game is over

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago