First commit
Dev Ghai authored 11 years ago
|
2)
3) using System;
4) using System.Collections.Generic;
5) using System.IO;
6) using System.Diagnostics;
7)
8) namespace Boggle
9) {
10) public class Boggle
11) {
12) static void PrintWords(HashSet<WordOnBoard> words)
13) {
14) int score = 0;
15) foreach (WordOnBoard word in words)
16) {
17) Console.Write("{0} [{1}], ", word.Word, word.Score);
18) score += word.Score;
19) }
20) Console.WriteLine("\n\nTotal score for this board: {0}", score);
21) }
22) static void Main(string[] args)
23) {
24) Stopwatch st = new Stopwatch();
25) BoggleList bl = new BoggleList();
26) Console.WriteLine("Current directory: {0}", Directory.GetCurrentDirectory());
27) #if !DEVELOPING
28) string input;
29) bool isError = false;
30) #endif
31) int boardSideLength = 3;
32) int minWordLength = 4;
33)
|