diff --git a/User1 b/User1 index 7f59bfa..3818a3a 100644 --- a/User1 +++ b/User1 @@ -14,7 +14,7 @@ null null 110 0 -2003967 +2060424 5 1 12 3444 diff --git a/User2 b/User2 index 8fe7e7f..170f3a3 100644 --- a/User2 +++ b/User2 @@ -1,4 +1,4 @@ -Dicks +Dickson null null null diff --git a/src/system.java b/src/system.java index ad93bb9..efd669e 100644 --- a/src/system.java +++ b/src/system.java @@ -697,7 +697,6 @@ static void AIcheck(boolean isNotFirst) { } x = Integer.parseInt(input.substring(1, input.length())) - 1; y = ((int) input.charAt(0)) - 65;// ASCII value for A~J = 65~74 - System.out.println("check " + round + " " + x + " " + y); if (x == 1) {// Get second digit, could be 10 try { if (Integer.parseInt(input.substring(2, 3)) == 0) @@ -705,6 +704,7 @@ static void AIcheck(boolean isNotFirst) { } catch (Exception e) { } } + System.out.println("check " + round + " " + x + " " + y); // Check for hit or miss on home grid userShot = Battleship.homeGrid[y][x]; if (userShot.shipType == null) {// Miss diff --git a/usersRecord.txt b/usersRecord.txt index 3d531eb..420ab38 100644 --- a/usersRecord.txt +++ b/usersRecord.txt @@ -1,2 +1,2 @@ Please enter a username -Dicks +Dickson