diff options
Diffstat (limited to 'Algorithms/Part-II/4-Boggle/BoggleGame.java')
-rw-r--r-- | Algorithms/Part-II/4-Boggle/BoggleGame.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Algorithms/Part-II/4-Boggle/BoggleGame.java b/Algorithms/Part-II/4-Boggle/BoggleGame.java index 71d5477..5306774 100644 --- a/Algorithms/Part-II/4-Boggle/BoggleGame.java +++ b/Algorithms/Part-II/4-Boggle/BoggleGame.java @@ -383,31 +383,31 @@ public class BoggleGame extends JFrame { ); // all words in shakespeare - In in1 = new In(new File("dictionary-shakespeare.txt")); + In in1 = new In(new File("./data/dictionary-shakespeare.txt")); shakespeareDictionary = new SET<String>(); for (String s : in1.readAllStrings()) shakespeareDictionary.add(s); // all words in shakespeare - In in2 = new In(new File("dictionary-nursery.txt")); + In in2 = new In(new File("./data/dictionary-nursery.txt")); nurseryDictionary = new SET<String>(); for (String s : in2.readAllStrings()) nurseryDictionary.add(s); // about 20K common words - In in3 = new In(new File("dictionary-common.txt")); + In in3 = new In(new File("./data/dictionary-common.txt")); commonDictionary = new SET<String>(); for (String s : in3.readAllStrings()) commonDictionary.add(s); // all words in Algorithms 4/e - In in4 = new In(new File("dictionary-algs4.txt")); + In in4 = new In(new File("./data/dictionary-algs4.txt")); algs4Dictionary = new SET<String>(); for (String s : in4.readAllStrings()) algs4Dictionary.add(s); // dictionary - In in = new In(new File("dictionary-yawl.txt")); + In in = new In(new File("./data/dictionary-yawl.txt")); String[] dictionary = in.readAllStrings(); // create the Boggle solver with the given dictionary |