Ex1

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 11 (") Java - 20441 : :" 1 7 ,(7 ,2) , .1 . , .2 x-location y-location direction num-beepers 7 2 North 0 .(7 ,2) , , . , : arik.pickBeeper( ); arik.pickBeeper( ); .2 "" .( ,) , (7 ,2) , , . - (7 ,3) : arik.move( ); : - main{ BasicRobot arik = new BasicRobot(7, 2, North, 0); arik.pickBeeper( ); arik.pickBeeper( ); arik.move( ); : 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10 11 12 13 .3 Beeper in the Beeper Bag 1 , ,(7 ,7) . , (7 ,2) .(7 ,7) , 2 public void mysteryInstruction() { move(); if ( facingWest() ) turnRight(); else turnLeft()...
View Full Document

Ask a homework question - tutors are online