-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
26 lines (20 loc) · 886 Bytes
/
Copy pathMain.java
File metadata and controls
26 lines (20 loc) · 886 Bytes
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
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class Main {
/**
* main
* pre: user is prepared to enter data at the terminal
* post: creates Wordle game and calls runProgram from driver class
* @throws IOException - if files are not found
*/
public static void main(String[] args) throws IOException {
System.out.println("\nWELCOME TO JORDLE (a jail version of Wordle): \nThe same rules as Wordle but " +
"without the UI design to make it so easy! No keyboard to help you.\n");
File validWords = new File("valid-wordle-words.txt");
File validAnswers = new File("wordlist.txt");
Wordle newGame = new Wordle(validWords, validAnswers);
Scanner input = new Scanner(System.in);
WordleDriver.runProgram(newGame, input);
}
}