summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/main/Console.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/main/Console.java')
-rw-r--r--src/ch/epfl/maze/main/Console.java5
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
26public class Console { 25public 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}