@scrabble-solver/scrabble-solver 2.16.0-alpha.2 → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.previewinfo +1 -1
- package/.next/cache/.rscinfo +1 -1
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/.next/prerender-manifest.json +4 -4
- package/.next/routes-manifest.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
- package/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
- package/.next/server/pages/api/solve.js +1 -1
- package/.next/server/pages/api/solve.js.nft.json +1 -1
- package/.next/server/pages/api/verify.js +1 -1
- package/.next/server/pages/api/verify.js.nft.json +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/index.json +1 -1
- package/.next/server/pages/not-found.html +1 -1
- package/.next/trace +21 -21
- package/.next/trace-build +1 -1
- package/package.json +10 -10
- package/src/api/isBoardValid.ts +4 -4
- package/tsconfig.tsbuildinfo +1 -1
- /package/.next/static/{ggdBhRVhHIKwF3fYbLo8S → -2mw8IrOEpCcsQa6oPYhR}/_buildManifest.js +0 -0
- /package/.next/static/{ggdBhRVhHIKwF3fYbLo8S → -2mw8IrOEpCcsQa6oPYhR}/_ssgManifest.js +0 -0
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-typescript","duration":
|
|
1
|
+
[{"name":"run-typescript","duration":1878442,"timestamp":17948366385,"id":13,"parentId":1,"tags":{},"startTime":1777580983909,"traceId":"f87437439890f394"},{"name":"run-webpack","duration":6032668,"timestamp":17950246945,"id":15,"parentId":1,"tags":{},"startTime":1777580985789,"traceId":"f87437439890f394"},{"name":"static-check","duration":177818,"timestamp":17956341819,"id":2026,"parentId":1,"tags":{},"startTime":1777580991884,"traceId":"f87437439890f394"},{"name":"static-generation","duration":815548,"timestamp":17956528104,"id":2044,"parentId":1,"tags":{},"startTime":1777580992070,"traceId":"f87437439890f394"},{"name":"collect-build-traces","duration":3598064,"timestamp":17956520116,"id":2041,"parentId":1,"tags":{},"startTime":1777580992062,"traceId":"f87437439890f394"},{"name":"telemetry-flush","duration":18,"timestamp":17960119320,"id":2056,"parentId":1,"tags":{},"startTime":1777580995661,"traceId":"f87437439890f394"},{"name":"next-build","duration":11983020,"timestamp":17948136322,"id":1,"tags":{"buildMode":"default","version":"16.2.4","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1777580983678,"traceId":"f87437439890f394"}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/scrabble-solver",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "Scrabble Solver 2 - App",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@floating-ui/react": "^0.27.19",
|
|
30
|
-
"@kamilmielnik/trie": "^
|
|
30
|
+
"@kamilmielnik/trie": "^5.0.0",
|
|
31
31
|
"@reduxjs/toolkit": "^2.11.2",
|
|
32
|
-
"@scrabble-solver/configs": "^2.16.
|
|
33
|
-
"@scrabble-solver/constants": "^2.16.
|
|
34
|
-
"@scrabble-solver/dictionaries": "^2.16.
|
|
35
|
-
"@scrabble-solver/logger": "^2.16.
|
|
36
|
-
"@scrabble-solver/solver": "^2.16.
|
|
37
|
-
"@scrabble-solver/types": "^2.16.
|
|
38
|
-
"@scrabble-solver/word-definitions": "^2.16.
|
|
32
|
+
"@scrabble-solver/configs": "^2.16.1",
|
|
33
|
+
"@scrabble-solver/constants": "^2.16.1",
|
|
34
|
+
"@scrabble-solver/dictionaries": "^2.16.1",
|
|
35
|
+
"@scrabble-solver/logger": "^2.16.1",
|
|
36
|
+
"@scrabble-solver/solver": "^2.16.1",
|
|
37
|
+
"@scrabble-solver/types": "^2.16.1",
|
|
38
|
+
"@scrabble-solver/word-definitions": "^2.16.1",
|
|
39
39
|
"classnames": "^2.5.1",
|
|
40
40
|
"env-cmd": "^11.0.0",
|
|
41
41
|
"include-media": "^2.0.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"@types/redux": "^3.6.31",
|
|
71
71
|
"sass": "^1.99.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "df1462399fc945fcfbf5d4d758b9922747ee3423"
|
|
74
74
|
}
|
package/src/api/isBoardValid.ts
CHANGED
|
@@ -23,10 +23,10 @@ const areTwoCharacterTilesValid = (board: CellJson[][], config: Config): boolean
|
|
|
23
23
|
|
|
24
24
|
for (const cell of cells) {
|
|
25
25
|
for (const characters of config.twoCharacterTiles) {
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
26
|
+
const cellDown = board[cell.y + 1]?.[cell.x];
|
|
27
|
+
const cellRight = board[cell.y]?.[cell.x + 1];
|
|
28
|
+
const canCheckDown = cell.y + 1 < board.length && Boolean(cellDown);
|
|
29
|
+
const canCheckRight = cell.x + 1 < board[0].length && Boolean(cellRight);
|
|
30
30
|
const collidesDown = canCheckDown && cellDown.tile && cellDown.tile.character === characters[1];
|
|
31
31
|
const collidesRight = canCheckRight && cellRight.tile && cellRight.tile.character === characters[1];
|
|
32
32
|
const collides = collidesDown || collidesRight;
|