Browse Source

tested version

testing_N
Alina Ehrensberger 1 year ago
parent
commit
b627544d6b
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      .idea/misc.xml
  2. 2
    2
      src/ManualBot.java

+ 1
- 1
.idea/misc.xml View File

<?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>

+ 2
- 2
src/ManualBot.java View File



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":

Loading…
Cancel
Save