From e349c351610aa25a1f1b83e5bcaaa692903184b2 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Thu, 12 Mar 2020 07:14:26 +1100 Subject: [PATCH] Commit files --- .gitignore | 5 + .idea/misc.xml | 16 - .idea/workspace.xml | 333 ++++++++++-------- .../java/au/com/seek/domain/Tabletop.java | 4 +- .../java/au/com/seek/parser/InputParser.java | 2 +- 5 files changed, 203 insertions(+), 157 deletions(-) diff --git a/.gitignore b/.gitignore index 378eac2..bf472f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ build +bin +.idea +.classpath +.project +.settings diff --git a/.idea/misc.xml b/.idea/misc.xml index a807377..2c55e21 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -41,20 +41,4 @@ - - - - - 1.7 - - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 517c0ad..390cbc7 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,5 +1,9 @@ + + @@ -45,73 +49,11 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -121,7 +63,7 @@ - + @@ -130,24 +72,43 @@ - - - - - - - - - + + + + + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -594,15 +555,15 @@ @@ -615,7 +576,7 @@ @@ -705,6 +666,66 @@ @@ -1582,34 +1603,36 @@ - - + - - - - - - - - + - - + + + + + + + + + + + @@ -1617,7 +1640,6 @@ - @@ -1821,10 +1843,26 @@ - + - - + + + + + + + + + + + + + + + + + + @@ -1837,14 +1875,6 @@ - - - - - - - - @@ -1856,20 +1886,26 @@ - + - - - - - + + + + + + + + + + + - + @@ -1877,45 +1913,66 @@ - + - - - - - - - - - - + + - - + + + + + + + + + + + + - - - - - - - - - - + + + + + + + 1.7 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/au/com/seek/domain/Tabletop.java b/src/main/java/au/com/seek/domain/Tabletop.java index 70cee98..ba6767d 100644 --- a/src/main/java/au/com/seek/domain/Tabletop.java +++ b/src/main/java/au/com/seek/domain/Tabletop.java @@ -2,8 +2,8 @@ package au.com.seek.domain; public class Tabletop { - public static final int X_AXIS_MAXIMUM = 5; - public static final int Y_AXIS_MAXIMUM = 5; + private static final int X_AXIS_MAXIMUM = 5; + private static final int Y_AXIS_MAXIMUM = 5; public static boolean isCoordinateOutOfTabletop(Coordinate coordinate) { return (coordinate.getXAxis() > X_AXIS_MAXIMUM) || (coordinate.getYAxis() > Y_AXIS_MAXIMUM); diff --git a/src/main/java/au/com/seek/parser/InputParser.java b/src/main/java/au/com/seek/parser/InputParser.java index 4728518..047954f 100644 --- a/src/main/java/au/com/seek/parser/InputParser.java +++ b/src/main/java/au/com/seek/parser/InputParser.java @@ -33,7 +33,7 @@ public class InputParser { MOVE, new MoveForwardCommand(), REPORT, new ReportCommand()); - private String file; + private final String file; private List commands = Lists.newArrayList(); private Robot robot;