Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 16 Online
OpenStudy (anonymous):

correspondence rather than attribute: In looking at problem 6 the room object is made an attribute of robot, but maybe it would be easier to make a correspondence between these two, like with a tuple with room-robot pairs. Intuitively, a room is not a property of a robot.

OpenStudy (anonymous):

do it the other way around.... the room has a collection of robots. the room has a blackboard where each robot marks its current position. before a robot moves it looks at the blackboard to see if it is going to collide with another bot.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!