Skip to content

Commit 5536e2f

Browse files
committed
change to one point per word to find dense boards
1 parent 06f1f70 commit 5536e2f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
"valarray": "cpp",
8787
"cfenv": "cpp",
8888
"utility": "cpp",
89-
"cassert": "cpp"
89+
"cassert": "cpp",
90+
"__config": "cpp"
9091
},
9192
"python.testing.pytestArgs": [
9293
"boggle"

cpp/constants.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
// can cause spuriously high scores.
99
const unsigned int kWordScores[] = {
1010
// 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25
11-
0, 0, 0, 1, 1, 2, 3, 5, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11};
11+
// 0, 0, 0, 1, 1, 2, 3, 5, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11};
12+
0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
13+
14+
static_assert(
15+
sizeof(kWordScores) / sizeof(kWordScores[0]) == 26
16+
);
1217

1318
// 5x5 board, 26 letters.
1419
const int MAX_CELLS = 5 * 5;

0 commit comments

Comments
 (0)