-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDriver.java
More file actions
35 lines (27 loc) · 1.04 KB
/
Driver.java
File metadata and controls
35 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Driver {
public static void main(String[] args) throws IOException {
testInferenceEngine();
//makeGame();
}
public static void makeGame() throws IOException {
BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
int[] prob = new int[3];
System.out.print("% chance of generating pit: ");
prob[0] = Integer.parseInt(dataIn.readLine());
System.out.println();
System.out.print("% chance of generating obstacle: ");
prob[1] = Integer.parseInt(dataIn.readLine());
System.out.println("");
System.out.print("% chance of generating wumpus: ");
prob[2] = Integer.parseInt(dataIn.readLine());
System.out.println("");
WumpusGame game = new WumpusGame(5, prob);
}
public static void testInferenceEngine() {
InferenceEngine engine = new InferenceEngine();
engine.convertToCNF(null);
}
}