diff options
author | Pacien TRAN-GIRARD | 2015-11-24 11:11:17 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-11-24 11:11:17 +0100 |
commit | bc477506342411e9156b3230d847cb92bcb8e5f9 (patch) | |
tree | d952a5d14dccef38bfba3f8e27bfe10ea65d446a /src/ch/epfl/maze/main/Console.java | |
parent | 903553fe9e03e4af75eb7f8547e08b480bc58ec4 (diff) | |
download | maze-solver-bc477506342411e9156b3230d847cb92bcb8e5f9.tar.gz |
Reformat code
Diffstat (limited to 'src/ch/epfl/maze/main/Console.java')
-rw-r--r-- | src/ch/epfl/maze/main/Console.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ch/epfl/maze/main/Console.java b/src/ch/epfl/maze/main/Console.java index cbcb8dc..931bec4 100644 --- a/src/ch/epfl/maze/main/Console.java +++ b/src/ch/epfl/maze/main/Console.java | |||
@@ -22,7 +22,6 @@ import java.util.Map; | |||
22 | * Mini-project main program that will run the simulations multiple times and | 22 | * Mini-project main program that will run the simulations multiple times and |
23 | * show statistics on the console. | 23 | * show statistics on the console. |
24 | */ | 24 | */ |
25 | |||
26 | public class Console { | 25 | public class Console { |
27 | 26 | ||
28 | /** | 27 | /** |
@@ -52,7 +51,6 @@ public class Console { | |||
52 | * | 51 | * |
53 | * @return A {@code MazeSimulation} suitable for statistics | 52 | * @return A {@code MazeSimulation} suitable for statistics |
54 | */ | 53 | */ |
55 | |||
56 | public static Simulation getMazeSimulation() { | 54 | public static Simulation getMazeSimulation() { |
57 | int[][] labyrinth = LabyrinthGenerator.getMedium(); | 55 | int[][] labyrinth = LabyrinthGenerator.getMedium(); |
58 | Maze m = new Maze(labyrinth); | 56 | Maze m = new Maze(labyrinth); |
@@ -84,7 +82,6 @@ public class Console { | |||
84 | * | 82 | * |
85 | * @return A {@code DaedalusSimulation} suitable for statistics | 83 | * @return A {@code DaedalusSimulation} suitable for statistics |
86 | */ | 84 | */ |
87 | |||
88 | public static Simulation getDaedalusSimulation() { | 85 | public static Simulation getDaedalusSimulation() { |
89 | int[][] labyrinth = LabyrinthGenerator.getPacMan(); | 86 | int[][] labyrinth = LabyrinthGenerator.getPacMan(); |
90 | Daedalus d = new Daedalus(labyrinth); | 87 | Daedalus d = new Daedalus(labyrinth); |
@@ -113,7 +110,6 @@ public class Console { | |||
113 | * | 110 | * |
114 | * @param results Statistics of arrival times for every animals/preys | 111 | * @param results Statistics of arrival times for every animals/preys |
115 | */ | 112 | */ |
116 | |||
117 | public static void printStats(Map<String, List<Integer>> results) { | 113 | public static void printStats(Map<String, List<Integer>> results) { |
118 | // computes statistics | 114 | // computes statistics |
119 | for (Map.Entry<String, List<Integer>> entry : results.entrySet()) { | 115 | for (Map.Entry<String, List<Integer>> entry : results.entrySet()) { |
@@ -154,4 +150,5 @@ public class Console { | |||
154 | Statistics.printDistribution(list); | 150 | Statistics.printDistribution(list); |
155 | } | 151 | } |
156 | } | 152 | } |
153 | |||
157 | } | 154 | } |