@@ -2,7 +2,9 @@ | |||
<module type="JAVA_MODULE" version="4"> | |||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | |||
<exclude-output /> | |||
<content url="file://$MODULE_DIR$" /> | |||
<content url="file://$MODULE_DIR$"> | |||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | |||
</content> | |||
<orderEntry type="inheritedJdk" /> | |||
<orderEntry type="sourceFolder" forTests="false" /> | |||
</component> |
@@ -1,6 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<project version="4"> | |||
<component name="ProjectRootManager" version="2" project-jdk-name="17" project-jdk-type="JavaSDK"> | |||
<component name="ProjectRootManager" version="2" languageLevel="JDK_20" project-jdk-name="17" project-jdk-type="JavaSDK"> | |||
<output url="file://$PROJECT_DIR$/out" /> | |||
</component> | |||
</project> |
@@ -1,3 +1,4 @@ | |||
public class Main { | |||
} |
@@ -1,6 +1,7 @@ | |||
import java.util.Scanner; | |||
public class ManualBot extends Bot{ | |||
public static void main(String[] args) { | |||
Bot manualBot = new ManualBot(args); | |||
manualBot.run(); | |||
} | |||
@@ -13,22 +14,19 @@ public class ManualBot extends Bot{ | |||
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; | |||
throw new Exception(); | |||
default: | |||
break; | |||
} | |||
return 0; | |||
} |