Open main menu

lensowiki β

Changes

Computer Science/61b/Homework/hw9/MazeTest.java

599 bytes added, 06:38, 22 September 2007
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();
}
}
}
1,273
edits