Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1-14 Assignment - Eclipse Install Writer pseudocade in Eclipse that a rabat can follow to escape amaze, for example, this one: Notice there are two

image text in transcribed

1-14 Assignment - Eclipse Install Writer pseudocade in Eclipse that a rabat can follow to escape amaze, for example, this one: Notice there are two switches, which by default are OFF, and control the corresponding doors. When the switch is on the door opens, and when off, the door closes. The robot is facing in the direction of the green arrow. The robot can save things into its memory when you tell it to, and is capable of performing the following actions: Sensing Is switch here? (answers yes or no depending on if the robot is near enough a switch to flip it) Is facing a wall? answers yes or no depending on if the rabat is facing a wal) Is wall on left/right? (answers yes or naif a wall is on the robot's left/right) Acting Move forward - Moves in the direction the robot is facing by one square Tumlet Turn right Activate switch - Turns an off switch on In general, this type of maze can be any size and there can be any number of switches/doors. All switches will by default be off, and will only ever control one door. This assignment is obviously very big, so break it down into pieces: 1. Write psuedocode that solves the following smaller maze ONLY: 2. Write psuedocode that solves ANY maze without switches, testit manually below Consider this problem from the point of view of the robot, what procedure could it perform to solve this msze? One solution is wall following", where you follow the path of a wall continuously until you exit. An example would be putting your hand on a wall inside a cave to ensure you can make it cut. Video Demonstration Demonstration of a Maze Solver 3. Add into the above psuedocode the ability to flip all switches the robot encounters

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 Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions