|
|
@@ -1,4 +1,4 @@ |
|
|
|
|
|
|
|
import java.util.Scanner; |
|
|
|
public class ManualBot extends Bot{ |
|
|
|
public static void main(String[] args) { |
|
|
|
Bot manualBot = new ManualBot(args); |
|
|
@@ -9,9 +9,27 @@ public class ManualBot extends Bot{ |
|
|
|
} |
|
|
|
|
|
|
|
protected char nextMove(View view) throws Exception{ |
|
|
|
Scanner scanner = new Scanner(); |
|
|
|
scanner. |
|
|
|
Scanner scanner = new Scanner(System.in); |
|
|
|
switch(scanner.nextLine()){ |
|
|
|
case "w": |
|
|
|
return '^' ; |
|
|
|
break; |
|
|
|
case "s": |
|
|
|
return 'V' ; |
|
|
|
break; |
|
|
|
case "a": |
|
|
|
return '<' ; |
|
|
|
break; |
|
|
|
case "d": |
|
|
|
return '>' ; |
|
|
|
break; |
|
|
|
case "q": |
|
|
|
throw new Exception; |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return c; |
|
|
|
} |
|
|
|
} |