summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-II/4-Boggle/BoggleGame.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-05-14 16:18:47 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-05-14 16:18:47 +0200
commitebe40f954e5caa034f0cbffb68ac85f13395ec6b (patch)
treecebf529f2a5f653f9a63318b5504587d5893b22f /Algorithms/Part-II/4-Boggle/BoggleGame.java
parent2ab59b85eeab78ef54570c6ae7c451ad142012b9 (diff)
downloadcoursera-ebe40f954e5caa034f0cbffb68ac85f13395ec6b.zip
coursera-ebe40f954e5caa034f0cbffb68ac85f13395ec6b.tar.gz
Algorithms-II : 4-Boggle: implementationalgs-II
Diffstat (limited to 'Algorithms/Part-II/4-Boggle/BoggleGame.java')
-rw-r--r--Algorithms/Part-II/4-Boggle/BoggleGame.java10
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