(String[] args)
| 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 | } |
nothing calls this directly
no test coverage detected