MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / main

Method main

LabEnv/09Lab/BoggleSolver.java:112–123  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

110 }
111
112 public static void main(String[] args) {
113 In in = new In(args[0]);
114 String[] dictionary = in.readAllStrings();
115 BoggleSolver solver = new BoggleSolver(dictionary);
116 BoggleBoard board = new BoggleBoard(args[1]);
117 int score = 0;
118 for (String word : solver.getAllValidWords(board)) {
119 StdOut.println(word);
120 score += solver.scoreOf(word);
121 }
122 StdOut.println("Score = " + score);
123 }
124}

Callers

nothing calls this directly

Calls 2

getAllValidWordsMethod · 0.95
scoreOfMethod · 0.95

Tested by

no test coverage detected