6.00.2x-pset2.py
def testRobotMovement(robot_type, room_type, delay=0.4):
    """
    Runs a simulation of a single robot of type robot_type in a 5x5 room.
    """
    room = room_type(5, 5)
    robot = robot_type(room, 1)
    anim = ps2_visualize.RobotVisualization(1, 5, 5, delay)
    while room.getNumCleanedTiles() / room.getNumTiles() < 1:
        robot.updatePositionAndClean()
        anim.update(room, [robot])
    anim.done()

    Runs a simulation of a single robot of type robot_type in a 5x5 room.
    
Runs a simulation of a single robot of type robot_type in a 5x5 room.
Runs a simulation of a single robot of type robot_type in a 5x5 room .
def testRobotMovement(robot_type, room_type, delay=0.4):
    room = room_type(5, 5)
    robot = robot_type(room, 1)
    anim = ps2_visualize.RobotVisualization(1, 5, 5, delay)
    while room.getNumCleanedTiles() / room.getNumTiles() < 1:
        robot.updatePositionAndClean()
        anim.update(room, [robot])
    anim.done()
def testRobotMovement ( robot_type , room_type , delay = 0.4 ) : room = room_type ( 5 , 5 ) robot = robot_type ( room , 1 ) anim = ps2_visualize . RobotVisualization ( 1 , 5 , 5 , delay ) while room . getNumCleanedTiles ( ) / room . getNumTiles ( ) < 1 : robot . updatePositionAndClean ( ) anim . update ( room , [ robot ] ) anim . done ( )
Runs a simulation of a single robot of type robot_type in a 5x5 room.
Runs a simulation of a single robot of type robot_type in a 5x5 room .
"""
    Runs a simulation of a single robot of type robot_type in a 5x5 room.
    """
robot_type
room_type
delay