摘要:
机器人卡雷尔的四个指令: move(); //向前移一格;turnLeft(); //向左转;pcickBeeper(); //捡起方块;putBeeper();//放下方块;定义向右转public void turnRight(){turnLeft();turnLeft();turnLeft();}向右转(循环)//for循环for(int i=0;i<3;i++){ turnLeft();}if-elseif(beepers present()){ if(frontIscearl) { move(); }}else{ pu... 阅读全文