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

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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" />
</component>
</project>

+ 2
- 2
src/ManualBot.java View File

@@ -11,12 +11,12 @@ public class ManualBot extends Bot{

protected char nextMove(View view) throws Exception{
Scanner scanner = new Scanner(System.in);
switch(scanner.nextLine()){
switch(scanner.nextLine().toLowerCase()){
case "w":
return '^' ;

case "s":
return 'V' ;
return 'v' ;
case "a":
return '<' ;
case "d":

Loading…
Cancel
Save