<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
<project version="4"> | <project version="4"> | ||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_20" project-jdk-name="17" project-jdk-type="JavaSDK"> | |||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="17" project-jdk-type="JavaSDK"> | |||||
<output url="file://$PROJECT_DIR$/out" /> | <output url="file://$PROJECT_DIR$/out" /> | ||||
</component> | </component> | ||||
</project> | </project> |
protected char nextMove(View view) throws Exception{ | protected char nextMove(View view) throws Exception{ | ||||
Scanner scanner = new Scanner(System.in); | Scanner scanner = new Scanner(System.in); | ||||
switch(scanner.nextLine()){ | |||||
switch(scanner.nextLine().toLowerCase()){ | |||||
case "w": | case "w": | ||||
return '^' ; | return '^' ; | ||||
case "s": | case "s": | ||||
return 'V' ; | |||||
return 'v' ; | |||||
case "a": | case "a": | ||||
return '<' ; | return '<' ; | ||||
case "d": | case "d": |