Question: Re - do Problem 3 - 7 with a Choreographer and 3 helpers. You may choose the starting positions of each robot. Karel has taken
Redo Problem with a Choreographer
and helpers. You may choose the
starting positions of each robot.
Karel has taken a part time job as a
gardner. Karel's specialty is planting
beepers. Karel's current task is to plant
one and only one beeper on each corner
around the shaped wall arrangement
as shown in the situation in Figure
This task should use beepers in total.
Task.kt
import kareltherobot.
import java.awt.Color
import kareltherobot.Directions.
Create your new robot classes here
class Choreographer:UrRobot
constructorst:Int, ave:Int, dir:Direction, beepers:Int:superst ave, dir, beepers
private var lisa:UrRobot UrRobot street: avenue: South, beepers: Color.PINKst helper
fun main
initializeWorld worldFile: "Problemkwld
Create your robot objects here and tell them what to do
var karel : Choreographer Choreographer st: ave: North, beepers:
You don't need to change anything below.
fun initializeWorldworldFile:String delay:Int
if worldFile.isEmpty
if windows in System.getProperty
osname"lowercase
World.readWorld filename: "worldFilesl worldFile
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
