Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Maze: Write a GENERALIZED method of solving mazes. This means a strategy to solve ANY maze with a valid, feasible solution, not just this maze.
Maze: Write a GENERALIZED method of solving mazes. This means a strategy to solve ANY maze with a valid, feasible solution, not just this maze. Use it to solve the maze world. Think about strategies for mazesolving that you remember from being a kid, and see if you can implement them in Karel.
Midpoint. Have Karel drop a beeper at the midpoint of the bottom row of ANY world other than the maze world For evenwidth boards, the beeper can be on either midpoint square.
Generalized checkerboard: Write a version of the checkerboard program that works on any size world. This function will create an alternating checkerboard pattern, exactly like a chessboard. I will test it on worlds you don't have access to
Your program cannot crash or error.
Each of these tasks will be worth points.
Here is a list of the Karel commands that DO NOT work:
Forloops do not work. You CAN use repeatinteger value instead.
beepersInBag
noBeepersInBag
facingNorth
notFacingNorth
facingEast
notFacingEast
facingSouth
notFacingSouth
facingWest
notFacingWest
paintCornercolor;
random
randomp
You cannot declare integers. Everything else in the Reference works.
REMINDER: Karel must terminate 'gracefully, ie Karel has to stop and cannot error or run infinitely.
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