Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void move10(Bot b, Map m){
- int movesMade=0;
- int turnCount=0;
- while (movesMade<10&&turnCount<4){
- if(b.move(m)){
- movesMade++;
- turnCount=0;
- System.out.println(b+": moved");
- }
- else{
- b.turn();
- turnCount++;
- System.out.println(b+": turned");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement