1,273
edits
Changes
no edit summary
{{code}}
// MazeTest.java
//
//
// Created by Paul Borokhov on 11/24/06.
// Copyright 2006 Paul Borokhov. All rights reserved.
//
public class MazeTest {
public static void main(String[] args) throws Exception {
int i1;
int i2;
for (int i=0; i<10000000; i++) {
i1 = ((int) (Math.random() * 10.0)) * ((int) (Math.random() * 10.0)) + 2;
i2 = ((int) (Math.random() * 10.0)) * ((int) (Math.random() * 10.0)) + 2;
Maze maze = new Maze(i1, i2);
System.out.println("Testing maze dimension " + i1 + " by " + i2 + ", iteration " + i);
maze.diagnose();
}
}
}
// MazeTest.java
//
//
// Created by Paul Borokhov on 11/24/06.
// Copyright 2006 Paul Borokhov. All rights reserved.
//
public class MazeTest {
public static void main(String[] args) throws Exception {
int i1;
int i2;
for (int i=0; i<10000000; i++) {
i1 = ((int) (Math.random() * 10.0)) * ((int) (Math.random() * 10.0)) + 2;
i2 = ((int) (Math.random() * 10.0)) * ((int) (Math.random() * 10.0)) + 2;
Maze maze = new Maze(i1, i2);
System.out.println("Testing maze dimension " + i1 + " by " + i2 + ", iteration " + i);
maze.diagnose();
}
}
}