摘要: 机器人卡雷尔的四个指令: 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... 阅读全文
posted @ 2012-03-17 19:34 逍游 阅读(152) 评论(1) 推荐(0) 编辑