scrabble-solver 2.18.9 → 2.18.10-alpha.0
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/.github/workflows/bunx.yml +2 -2
- package/.github/workflows/npx.yml +2 -2
- package/.oxlintrc.json +19 -21
- package/CLAUDE.md +6 -5
- package/README.md +0 -1
- package/bun.lock +216 -1391
- package/e2e/app.spec.ts +1 -1
- package/e2e/bugs/380-transliteration-when-pasting.spec.ts +1 -1
- package/e2e/features/198-highlight-unreachable-cells.spec.ts +2 -2
- package/e2e/features/430-highlight-unreachable-cells-results.spec.ts +2 -2
- package/e2e/features/91-hover-remaining-tile-highlights.spec.ts +1 -1
- package/e2e/features/results-interactions.spec.ts +1 -1
- package/e2e/features/solver-paths.spec.ts +1 -1
- package/e2e/features/words-interactions.spec.ts +1 -1
- package/e2e/lib/actions.ts +1 -1
- package/nx.json +30 -1
- package/package.json +11 -15
- package/playwright-report/index.html +1 -1
- package/project.json +3 -0
- package/.nx/workspace-data/file-map.json +0 -3128
- package/.nx/workspace-data/lockfile-dependencies.hash +0 -1
- package/.nx/workspace-data/lockfile-dependencies.json +0 -12430
- package/.nx/workspace-data/lockfile-nodes.hash +0 -1
- package/.nx/workspace-data/lockfile-nodes.json +0 -22994
- package/.nx/workspace-data/lockfile.hash +0 -1
- package/.nx/workspace-data/nx_files.lock +0 -0
- package/.nx/workspace-data/nx_files.nxt +0 -0
- package/.nx/workspace-data/nx_files_v2.nxt +0 -0
- package/.nx/workspace-data/parsed-lock-file.dependencies.json +0 -12627
- package/.nx/workspace-data/parsed-lock-file.json +0 -34331
- package/.nx/workspace-data/parsed-lock-file.nodes.json +0 -23684
- package/.nx/workspace-data/project-graph.json +0 -37814
- package/.nx/workspace-data/project-graph.lock +0 -0
- package/.nx/workspace-data/source-maps.json +0 -1936
- package/bump-version.js +0 -39
- package/lerna.json +0 -11
- package/packages/configs/README.md +0 -3
- package/packages/configs/build/games/crossplay.d.ts +0 -19
- package/packages/configs/build/games/crossplay.js +0 -73
- package/packages/configs/build/games/index.d.ts +0 -9
- package/packages/configs/build/games/index.js +0 -25
- package/packages/configs/build/games/kelimelik.d.ts +0 -19
- package/packages/configs/build/games/kelimelik.js +0 -65
- package/packages/configs/build/games/letterLeague.d.ts +0 -19
- package/packages/configs/build/games/letterLeague.js +0 -161
- package/packages/configs/build/games/literaki.d.ts +0 -26
- package/packages/configs/build/games/literaki.js +0 -110
- package/packages/configs/build/games/scrabble.d.ts +0 -19
- package/packages/configs/build/games/scrabble.js +0 -78
- package/packages/configs/build/games/scrabbleDuel.d.ts +0 -19
- package/packages/configs/build/games/scrabbleDuel.js +0 -50
- package/packages/configs/build/games/superScrabble.d.ts +0 -19
- package/packages/configs/build/games/superScrabble.js +0 -141
- package/packages/configs/build/games/wordfeud.d.ts +0 -19
- package/packages/configs/build/games/wordfeud.js +0 -81
- package/packages/configs/build/games/wyrazy.d.ts +0 -19
- package/packages/configs/build/games/wyrazy.js +0 -73
- package/packages/configs/build/getConfig.d.ts +0 -2
- package/packages/configs/build/getConfig.js +0 -46
- package/packages/configs/build/hasConfig.d.ts +0 -2
- package/packages/configs/build/hasConfig.js +0 -42
- package/packages/configs/build/index.d.ts +0 -5
- package/packages/configs/build/index.js +0 -44
- package/packages/configs/build/languages/english.d.ts +0 -15
- package/packages/configs/build/languages/english.js +0 -456
- package/packages/configs/build/languages/french.d.ts +0 -2
- package/packages/configs/build/languages/french.js +0 -37
- package/packages/configs/build/languages/german.d.ts +0 -2
- package/packages/configs/build/languages/german.js +0 -40
- package/packages/configs/build/languages/index.d.ts +0 -8
- package/packages/configs/build/languages/index.js +0 -24
- package/packages/configs/build/languages/persian.d.ts +0 -2
- package/packages/configs/build/languages/persian.js +0 -43
- package/packages/configs/build/languages/polish.d.ts +0 -4
- package/packages/configs/build/languages/polish.js +0 -119
- package/packages/configs/build/languages/romanian.d.ts +0 -3
- package/packages/configs/build/languages/romanian.js +0 -64
- package/packages/configs/build/languages/spanish.d.ts +0 -2
- package/packages/configs/build/languages/spanish.js +0 -39
- package/packages/configs/build/languages/turkish.d.ts +0 -3
- package/packages/configs/build/languages/turkish.js +0 -75
- package/packages/configs/package.json +0 -41
- package/packages/configs/src/games/crossplay.ts +0 -87
- package/packages/configs/src/games/index.ts +0 -9
- package/packages/configs/src/games/kelimelik.ts +0 -63
- package/packages/configs/src/games/letterLeague.ts +0 -177
- package/packages/configs/src/games/literaki.ts +0 -108
- package/packages/configs/src/games/scrabble.ts +0 -76
- package/packages/configs/src/games/scrabbleDuel.ts +0 -56
- package/packages/configs/src/games/superScrabble.ts +0 -139
- package/packages/configs/src/games/wordfeud.ts +0 -79
- package/packages/configs/src/games/wyrazy.ts +0 -71
- package/packages/configs/src/getConfig.ts +0 -14
- package/packages/configs/src/hasConfig.ts +0 -8
- package/packages/configs/src/index.ts +0 -6
- package/packages/configs/src/languages/english.ts +0 -469
- package/packages/configs/src/languages/french.ts +0 -36
- package/packages/configs/src/languages/german.ts +0 -39
- package/packages/configs/src/languages/index.ts +0 -8
- package/packages/configs/src/languages/persian.ts +0 -42
- package/packages/configs/src/languages/polish.ts +0 -120
- package/packages/configs/src/languages/romanian.ts +0 -64
- package/packages/configs/src/languages/spanish.ts +0 -38
- package/packages/configs/src/languages/turkish.ts +0 -75
- package/packages/configs/tsconfig.json +0 -10
- package/packages/constants/README.md +0 -3
- package/packages/constants/build/index.d.ts +0 -12
- package/packages/constants/build/index.js +0 -12
- package/packages/constants/package.json +0 -30
- package/packages/constants/src/index.ts +0 -17
- package/packages/constants/tsconfig.json +0 -10
- package/packages/dictionaries/README.md +0 -3
- package/packages/dictionaries/bin/remove-dictionaries.js +0 -13
- package/packages/dictionaries/bin/update-dictionaries.js +0 -14
- package/packages/dictionaries/build/Dictionaries.d.ts +0 -12
- package/packages/dictionaries/build/Dictionaries.js +0 -53
- package/packages/dictionaries/build/constants.d.ts +0 -3
- package/packages/dictionaries/build/constants.js +0 -11
- package/packages/dictionaries/build/index.d.ts +0 -3
- package/packages/dictionaries/build/index.js +0 -20
- package/packages/dictionaries/build/lib/DiskCache.d.ts +0 -17
- package/packages/dictionaries/build/lib/DiskCache.js +0 -66
- package/packages/dictionaries/build/lib/LayeredCache.d.ts +0 -12
- package/packages/dictionaries/build/lib/LayeredCache.js +0 -53
- package/packages/dictionaries/build/lib/MemoryCache.d.ts +0 -12
- package/packages/dictionaries/build/lib/MemoryCache.js +0 -33
- package/packages/dictionaries/build/lib/createAsyncProxy.d.ts +0 -3
- package/packages/dictionaries/build/lib/createAsyncProxy.js +0 -19
- package/packages/dictionaries/build/lib/createCacheTimestampComparator.d.ts +0 -4
- package/packages/dictionaries/build/lib/createCacheTimestampComparator.js +0 -20
- package/packages/dictionaries/build/lib/downloadDictionary.d.ts +0 -3
- package/packages/dictionaries/build/lib/downloadDictionary.js +0 -20
- package/packages/dictionaries/build/lib/getDictionaryFilepath.d.ts +0 -4
- package/packages/dictionaries/build/lib/getDictionaryFilepath.js +0 -17
- package/packages/dictionaries/build/lib/index.d.ts +0 -7
- package/packages/dictionaries/build/lib/index.js +0 -17
- package/packages/dictionaries/build/types.d.ts +0 -7
- package/packages/dictionaries/build/types.js +0 -2
- package/packages/dictionaries/package.json +0 -46
- package/packages/dictionaries/src/Dictionaries.ts +0 -65
- package/packages/dictionaries/src/constants.ts +0 -8
- package/packages/dictionaries/src/index.ts +0 -5
- package/packages/dictionaries/src/lib/DiskCache.test.ts +0 -85
- package/packages/dictionaries/src/lib/DiskCache.ts +0 -77
- package/packages/dictionaries/src/lib/LayeredCache.ts +0 -67
- package/packages/dictionaries/src/lib/MemoryCache.ts +0 -40
- package/packages/dictionaries/src/lib/createAsyncProxy.ts +0 -18
- package/packages/dictionaries/src/lib/createCacheTimestampComparator.ts +0 -25
- package/packages/dictionaries/src/lib/downloadDictionary.ts +0 -21
- package/packages/dictionaries/src/lib/getDictionaryFilepath.ts +0 -13
- package/packages/dictionaries/src/lib/index.ts +0 -7
- package/packages/dictionaries/src/types.ts +0 -7
- package/packages/dictionaries/tsconfig.json +0 -10
- package/packages/logger/README.md +0 -21
- package/packages/logger/build/constants.d.ts +0 -4
- package/packages/logger/build/constants.js +0 -12
- package/packages/logger/build/describeError.d.ts +0 -5
- package/packages/logger/build/describeError.js +0 -23
- package/packages/logger/build/events.d.ts +0 -92
- package/packages/logger/build/events.js +0 -13
- package/packages/logger/build/formatCsvRow.d.ts +0 -2
- package/packages/logger/build/formatCsvRow.js +0 -20
- package/packages/logger/build/index.d.ts +0 -5
- package/packages/logger/build/index.js +0 -15
- package/packages/logger/build/logError.d.ts +0 -4
- package/packages/logger/build/logError.js +0 -17
- package/packages/logger/build/logEvent.d.ts +0 -3
- package/packages/logger/build/logEvent.js +0 -29
- package/packages/logger/package.json +0 -34
- package/packages/logger/scripts/export-csv.ts +0 -113
- package/packages/logger/scripts/readEvents.ts +0 -34
- package/packages/logger/scripts/tsconfig.json +0 -10
- package/packages/logger/src/constants.ts +0 -13
- package/packages/logger/src/describeError.test.ts +0 -44
- package/packages/logger/src/describeError.ts +0 -30
- package/packages/logger/src/events.ts +0 -103
- package/packages/logger/src/formatCsvRow.test.ts +0 -41
- package/packages/logger/src/formatCsvRow.ts +0 -24
- package/packages/logger/src/index.ts +0 -13
- package/packages/logger/src/logError.ts +0 -24
- package/packages/logger/src/logEvent.test.ts +0 -59
- package/packages/logger/src/logEvent.ts +0 -26
- package/packages/logger/tsconfig.json +0 -10
- package/packages/scrabble-solver/.env +0 -1
- package/packages/scrabble-solver/.next/BUILD_ID +0 -1
- package/packages/scrabble-solver/.next/build-manifest.json +0 -42
- package/packages/scrabble-solver/.next/cache/.previewinfo +0 -1
- package/packages/scrabble-solver/.next/cache/.rscinfo +0 -1
- package/packages/scrabble-solver/.next/cache/.tsbuildinfo +0 -1
- package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -4
- package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
- package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/packages/scrabble-solver/.next/diagnostics/build-diagnostics.json +0 -6
- package/packages/scrabble-solver/.next/diagnostics/framework.json +0 -1
- package/packages/scrabble-solver/.next/dynamic-css-manifest.json +0 -8
- package/packages/scrabble-solver/.next/export-marker.json +0 -6
- package/packages/scrabble-solver/.next/images-manifest.json +0 -68
- package/packages/scrabble-solver/.next/next-minimal-server.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/next-server.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/package.json +0 -1
- package/packages/scrabble-solver/.next/prerender-manifest.json +0 -28
- package/packages/scrabble-solver/.next/react-loadable-manifest.json +0 -176
- package/packages/scrabble-solver/.next/required-server-files.js +0 -371
- package/packages/scrabble-solver/.next/required-server-files.json +0 -371
- package/packages/scrabble-solver/.next/routes-manifest.json +0 -129
- package/packages/scrabble-solver/.next/server/chunks/30.js +0 -6
- package/packages/scrabble-solver/.next/server/chunks/309.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/344.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/371.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/465.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/546.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/612.js +0 -5
- package/packages/scrabble-solver/.next/server/chunks/623.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/624.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/641.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/67.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/671.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/692.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/705.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/712.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/715.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/812.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/846.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/853.js +0 -15
- package/packages/scrabble-solver/.next/server/chunks/886.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/942.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/953.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/961.js +0 -1
- package/packages/scrabble-solver/.next/server/chunks/968.js +0 -1
- package/packages/scrabble-solver/.next/server/dynamic-css-manifest.js +0 -1
- package/packages/scrabble-solver/.next/server/functions-config-manifest.json +0 -4
- package/packages/scrabble-solver/.next/server/interception-route-rewrite-manifest.js +0 -1
- package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +0 -1
- package/packages/scrabble-solver/.next/server/middleware-manifest.json +0 -6
- package/packages/scrabble-solver/.next/server/middleware-react-loadable-manifest.js +0 -1
- package/packages/scrabble-solver/.next/server/next-font-manifest.js +0 -1
- package/packages/scrabble-solver/.next/server/next-font-manifest.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/404.html +0 -29
- package/packages/scrabble-solver/.next/server/pages/500.html +0 -29
- package/packages/scrabble-solver/.next/server/pages/_app.js +0 -1
- package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/_document.js +0 -28
- package/packages/scrabble-solver/.next/server/pages/_document.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/_error.js +0 -28
- package/packages/scrabble-solver/.next/server/pages/_error.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +0 -2
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale].js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/solve.js +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/solve.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/verify.js +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/verify.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/visit.js +0 -1
- package/packages/scrabble-solver/.next/server/pages/api/visit.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/index.html +0 -29
- package/packages/scrabble-solver/.next/server/pages/index.js +0 -30
- package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/index.json +0 -1
- package/packages/scrabble-solver/.next/server/pages/index.meta +0 -1
- package/packages/scrabble-solver/.next/server/pages/not-found.html +0 -29
- package/packages/scrabble-solver/.next/server/pages/not-found.js.nft.json +0 -1
- package/packages/scrabble-solver/.next/server/pages-manifest.json +0 -13
- package/packages/scrabble-solver/.next/server/prefetch-hints.json +0 -1
- package/packages/scrabble-solver/.next/server/preview-props.json +0 -5
- package/packages/scrabble-solver/.next/server/route-cache/PAGES/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/$/index.html +0 -29
- package/packages/scrabble-solver/.next/server/route-cache/PAGES/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/$/index.json +0 -1
- package/packages/scrabble-solver/.next/server/route-cache/PAGES/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1/$/index.meta +0 -1
- package/packages/scrabble-solver/.next/server/webpack-api-runtime.js +0 -1
- package/packages/scrabble-solver/.next/server/webpack-runtime.js +0 -1
- package/packages/scrabble-solver/.next/static/ZAXBgTNB3tlEK8seyFXPO/_buildManifest.js +0 -1
- package/packages/scrabble-solver/.next/static/ZAXBgTNB3tlEK8seyFXPO/_ssgManifest.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/100.305bdf9c75b1758f.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/256.9fcbd6c03ebdb85b.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/277.6785dfaf22fdb0b7.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/307.89e6100f58443679.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/341.79535ba85bf1986f.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/363.1e1dca73189c1b3e.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/422.3e55b4c94e328701.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/541.dcd9e8b804f88da5.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/601.32e35cfa23379a43.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/631.98d42abad0a60af6.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/663.bd2c45413fbca518.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/693.1f53805be6ad36d1.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/744-5ad846426b8f4514.js +0 -3
- package/packages/scrabble-solver/.next/static/chunks/820.823e9e885ebb66af.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/827.d01b6d69af340ba4.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/865.59baba8296c9b116.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/912.077603e4f0bc6cca.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/939.2ad86b50405c7897.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/980.dd35e807b18063c1.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/990.61296e5870b91f11.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/framework-86d3b250d278cea9.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/main-738e097cd313908f.js +0 -5
- package/packages/scrabble-solver/.next/static/chunks/pages/_app-649c89598d664fab.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/pages/_error-f0290a98eb3ed0ec.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/pages/index-ebba11f9b00e2bb5.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/pages/not-found-a59f9deeeff63d17.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/packages/scrabble-solver/.next/static/chunks/webpack-e8cd77eb7929e1f0.js +0 -1
- package/packages/scrabble-solver/.next/static/css/2d03f0da2c678dfc.css +0 -1
- package/packages/scrabble-solver/.next/static/css/4dbcacc1122ac6b9.css +0 -2
- package/packages/scrabble-solver/.next/static/css/7b6724d2df70f48f.css +0 -1
- package/packages/scrabble-solver/.next/static/css/8b8087461767360a.css +0 -1
- package/packages/scrabble-solver/.next/static/css/98051ed25076b896.css +0 -1
- package/packages/scrabble-solver/.next/static/css/b736be3bd02b5d99.css +0 -1
- package/packages/scrabble-solver/.next/static/css/ca311e6c030663d4.css +0 -1
- package/packages/scrabble-solver/.next/static/css/cd4d7f2458487399.css +0 -1
- package/packages/scrabble-solver/.next/static/css/dee878eb64099d92.css +0 -1
- package/packages/scrabble-solver/.next/trace +0 -36
- package/packages/scrabble-solver/.next/trace-build +0 -1
- package/packages/scrabble-solver/.next/types/cache-life.d.ts +0 -114
- package/packages/scrabble-solver/.next/types/root-params.d.ts +0 -3
- package/packages/scrabble-solver/.next/types/routes.d.ts +0 -57
- package/packages/scrabble-solver/.next/types/validator.ts +0 -113
- package/packages/scrabble-solver/AGENTS.md +0 -9
- package/packages/scrabble-solver/CLAUDE.md +0 -1
- package/packages/scrabble-solver/README.md +0 -19
- package/packages/scrabble-solver/empty-module.js +0 -2
- package/packages/scrabble-solver/next-env.d.ts +0 -7
- package/packages/scrabble-solver/next.config.js +0 -55
- package/packages/scrabble-solver/package.json +0 -99
- package/packages/scrabble-solver/public/favicon.ico +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-114x114.png +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-120x120.png +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-144x144.png +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-152x152.png +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-57x57.png +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-60x60.png +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-72x72.png +0 -0
- package/packages/scrabble-solver/public/icons/apple-touch-icon-76x76.png +0 -0
- package/packages/scrabble-solver/public/icons/favicon-128.png +0 -0
- package/packages/scrabble-solver/public/icons/favicon-16x16.png +0 -0
- package/packages/scrabble-solver/public/icons/favicon-196x196.png +0 -0
- package/packages/scrabble-solver/public/icons/favicon-32x32.png +0 -0
- package/packages/scrabble-solver/public/icons/favicon-96x96.png +0 -0
- package/packages/scrabble-solver/public/icons/favicon.svg +0 -6
- package/packages/scrabble-solver/public/icons/mstile-144x144.png +0 -0
- package/packages/scrabble-solver/public/icons/mstile-150x150.png +0 -0
- package/packages/scrabble-solver/public/icons/mstile-310x150.png +0 -0
- package/packages/scrabble-solver/public/icons/mstile-310x310.png +0 -0
- package/packages/scrabble-solver/public/icons/mstile-70x70.png +0 -0
- package/packages/scrabble-solver/public/llms.txt +0 -11
- package/packages/scrabble-solver/public/logo.svg +0 -62
- package/packages/scrabble-solver/public/og.png +0 -0
- package/packages/scrabble-solver/public/robots.txt +0 -5
- package/packages/scrabble-solver/public/service-worker.js +0 -2
- package/packages/scrabble-solver/public/service-worker.js.map +0 -1
- package/packages/scrabble-solver/public/site.webmanifest +0 -14
- package/packages/scrabble-solver/public/sitemap.xml +0 -1
- package/packages/scrabble-solver/scripts/generate-scss-types.ts +0 -112
- package/packages/scrabble-solver/src/@types/scss.d.ts +0 -6
- package/packages/scrabble-solver/src/@types/svg.d.ts +0 -7
- package/packages/scrabble-solver/src/api/BadRequestError.ts +0 -6
- package/packages/scrabble-solver/src/api/index.ts +0 -6
- package/packages/scrabble-solver/src/api/isBoardValid.ts +0 -41
- package/packages/scrabble-solver/src/api/isCellValid.ts +0 -25
- package/packages/scrabble-solver/src/api/isCharacterValid.ts +0 -12
- package/packages/scrabble-solver/src/api/isRowValid.ts +0 -17
- package/packages/scrabble-solver/src/api/withApiLog.ts +0 -85
- package/packages/scrabble-solver/src/components/Alert/Alert.module.scss +0 -52
- package/packages/scrabble-solver/src/components/Alert/Alert.module.scss.d.ts +0 -13
- package/packages/scrabble-solver/src/components/Alert/Alert.tsx +0 -44
- package/packages/scrabble-solver/src/components/Alert/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Badge/Badge.module.scss +0 -12
- package/packages/scrabble-solver/src/components/Badge/Badge.module.scss.d.ts +0 -6
- package/packages/scrabble-solver/src/components/Badge/Badge.tsx +0 -13
- package/packages/scrabble-solver/src/components/Badge/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Board/Board.module.scss +0 -83
- package/packages/scrabble-solver/src/components/Board/Board.module.scss.d.ts +0 -17
- package/packages/scrabble-solver/src/components/Board/Board.tsx +0 -221
- package/packages/scrabble-solver/src/components/Board/BoardPure.tsx +0 -166
- package/packages/scrabble-solver/src/components/Board/components/Actions/Actions.module.scss +0 -33
- package/packages/scrabble-solver/src/components/Board/components/Actions/Actions.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/components/Board/components/Actions/Actions.tsx +0 -103
- package/packages/scrabble-solver/src/components/Board/components/Actions/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Board/components/Actions/lib.ts +0 -32
- package/packages/scrabble-solver/src/components/Board/components/Cell/Cell.module.scss +0 -99
- package/packages/scrabble-solver/src/components/Board/components/Cell/Cell.module.scss.d.ts +0 -13
- package/packages/scrabble-solver/src/components/Board/components/Cell/Cell.tsx +0 -135
- package/packages/scrabble-solver/src/components/Board/components/Cell/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Board/components/InputPrompt/InputPrompt.module.scss +0 -34
- package/packages/scrabble-solver/src/components/Board/components/InputPrompt/InputPrompt.module.scss.d.ts +0 -10
- package/packages/scrabble-solver/src/components/Board/components/InputPrompt/InputPrompt.tsx +0 -87
- package/packages/scrabble-solver/src/components/Board/components/InputPrompt/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Board/components/ToggleDirectionButton/ToggleDirectionButton.module.scss +0 -21
- package/packages/scrabble-solver/src/components/Board/components/ToggleDirectionButton/ToggleDirectionButton.module.scss.d.ts +0 -8
- package/packages/scrabble-solver/src/components/Board/components/ToggleDirectionButton/ToggleDirectionButton.tsx +0 -41
- package/packages/scrabble-solver/src/components/Board/components/ToggleDirectionButton/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Board/components/index.ts +0 -4
- package/packages/scrabble-solver/src/components/Board/getBoardBackground.ts +0 -175
- package/packages/scrabble-solver/src/components/Board/hooks/index.ts +0 -5
- package/packages/scrabble-solver/src/components/Board/hooks/useBoardStyle.ts +0 -24
- package/packages/scrabble-solver/src/components/Board/hooks/useFloatingActions.ts +0 -17
- package/packages/scrabble-solver/src/components/Board/hooks/useFloatingFocus.ts +0 -8
- package/packages/scrabble-solver/src/components/Board/hooks/useFloatingInputPrompt.ts +0 -17
- package/packages/scrabble-solver/src/components/Board/hooks/useGrid.ts +0 -390
- package/packages/scrabble-solver/src/components/Board/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Board/lib.test.ts +0 -106
- package/packages/scrabble-solver/src/components/Board/lib.ts +0 -149
- package/packages/scrabble-solver/src/components/Board/selectors.ts +0 -39
- package/packages/scrabble-solver/src/components/Button/Button.module.scss +0 -96
- package/packages/scrabble-solver/src/components/Button/Button.module.scss.d.ts +0 -12
- package/packages/scrabble-solver/src/components/Button/Button.tsx +0 -50
- package/packages/scrabble-solver/src/components/Button/Link.tsx +0 -45
- package/packages/scrabble-solver/src/components/Button/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Dictionary/Dictionary.module.scss +0 -65
- package/packages/scrabble-solver/src/components/Dictionary/Dictionary.module.scss.d.ts +0 -14
- package/packages/scrabble-solver/src/components/Dictionary/Dictionary.tsx +0 -78
- package/packages/scrabble-solver/src/components/Dictionary/index.ts +0 -1
- package/packages/scrabble-solver/src/components/DictionaryInput/DictionaryInput.module.scss +0 -12
- package/packages/scrabble-solver/src/components/DictionaryInput/DictionaryInput.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/components/DictionaryInput/DictionaryInput.tsx +0 -45
- package/packages/scrabble-solver/src/components/DictionaryInput/index.ts +0 -1
- package/packages/scrabble-solver/src/components/EmptyState/EmptyState.module.scss +0 -14
- package/packages/scrabble-solver/src/components/EmptyState/EmptyState.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/components/EmptyState/EmptyState.tsx +0 -55
- package/packages/scrabble-solver/src/components/EmptyState/index.ts +0 -1
- package/packages/scrabble-solver/src/components/IconButton/IconButton.module.scss +0 -39
- package/packages/scrabble-solver/src/components/IconButton/IconButton.module.scss.d.ts +0 -8
- package/packages/scrabble-solver/src/components/IconButton/IconButton.tsx +0 -31
- package/packages/scrabble-solver/src/components/IconButton/Link.tsx +0 -26
- package/packages/scrabble-solver/src/components/IconButton/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Key/Key.module.scss +0 -29
- package/packages/scrabble-solver/src/components/Key/Key.module.scss.d.ts +0 -6
- package/packages/scrabble-solver/src/components/Key/Key.tsx +0 -13
- package/packages/scrabble-solver/src/components/Key/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Keys/Arrows/Arrows.module.scss +0 -41
- package/packages/scrabble-solver/src/components/Keys/Arrows/Arrows.module.scss.d.ts +0 -11
- package/packages/scrabble-solver/src/components/Keys/Arrows/Arrows.tsx +0 -32
- package/packages/scrabble-solver/src/components/Keys/Arrows/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Keys/index.tsx +0 -28
- package/packages/scrabble-solver/src/components/Loading/Loading.module.scss +0 -33
- package/packages/scrabble-solver/src/components/Loading/Loading.module.scss.d.ts +0 -9
- package/packages/scrabble-solver/src/components/Loading/Loading.tsx +0 -37
- package/packages/scrabble-solver/src/components/Loading/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Logo/Logo.tsx +0 -12
- package/packages/scrabble-solver/src/components/Logo/LogoBlueprint.tsx +0 -22
- package/packages/scrabble-solver/src/components/Logo/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Modal/Modal.module.scss +0 -119
- package/packages/scrabble-solver/src/components/Modal/Modal.module.scss.d.ts +0 -15
- package/packages/scrabble-solver/src/components/Modal/Modal.tsx +0 -105
- package/packages/scrabble-solver/src/components/Modal/components/Section/Section.module.scss +0 -11
- package/packages/scrabble-solver/src/components/Modal/components/Section/Section.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/components/Modal/components/Section/Section.tsx +0 -18
- package/packages/scrabble-solver/src/components/Modal/components/Section/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Modal/components/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Modal/index.ts +0 -1
- package/packages/scrabble-solver/src/components/NavButtons/NavButtons.module.scss +0 -53
- package/packages/scrabble-solver/src/components/NavButtons/NavButtons.module.scss.d.ts +0 -13
- package/packages/scrabble-solver/src/components/NavButtons/NavButtons.tsx +0 -127
- package/packages/scrabble-solver/src/components/NavButtons/index.ts +0 -1
- package/packages/scrabble-solver/src/components/NavButtons/selectors.ts +0 -11
- package/packages/scrabble-solver/src/components/NotFound/NotFound.module.scss +0 -37
- package/packages/scrabble-solver/src/components/NotFound/NotFound.module.scss.d.ts +0 -9
- package/packages/scrabble-solver/src/components/NotFound/NotFound.tsx +0 -18
- package/packages/scrabble-solver/src/components/NotFound/index.ts +0 -1
- package/packages/scrabble-solver/src/components/PlainTiles/PlainTiles.module.scss +0 -24
- package/packages/scrabble-solver/src/components/PlainTiles/PlainTiles.module.scss.d.ts +0 -11
- package/packages/scrabble-solver/src/components/PlainTiles/PlainTiles.tsx +0 -53
- package/packages/scrabble-solver/src/components/PlainTiles/Tile.tsx +0 -41
- package/packages/scrabble-solver/src/components/PlainTiles/index.ts +0 -1
- package/packages/scrabble-solver/src/components/PlainTiles/lib.ts +0 -75
- package/packages/scrabble-solver/src/components/PlainTiles/types.ts +0 -22
- package/packages/scrabble-solver/src/components/Progress/Progress.module.scss +0 -16
- package/packages/scrabble-solver/src/components/Progress/Progress.module.scss.d.ts +0 -6
- package/packages/scrabble-solver/src/components/Progress/Progress.tsx +0 -32
- package/packages/scrabble-solver/src/components/Progress/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Rack/Rack.module.scss +0 -95
- package/packages/scrabble-solver/src/components/Rack/Rack.module.scss.d.ts +0 -10
- package/packages/scrabble-solver/src/components/Rack/Rack.tsx +0 -199
- package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/InputPrompt.module.scss +0 -21
- package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/InputPrompt.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/InputPrompt.tsx +0 -73
- package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/lib.test.ts +0 -27
- package/packages/scrabble-solver/src/components/Rack/components/InputPrompt/lib.ts +0 -17
- package/packages/scrabble-solver/src/components/Rack/components/RackTile/RackTile.module.scss +0 -11
- package/packages/scrabble-solver/src/components/Rack/components/RackTile/RackTile.module.scss.d.ts +0 -6
- package/packages/scrabble-solver/src/components/Rack/components/RackTile/RackTile.tsx +0 -165
- package/packages/scrabble-solver/src/components/Rack/components/RackTile/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Rack/components/index.ts +0 -2
- package/packages/scrabble-solver/src/components/Rack/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Rack/selectors.ts +0 -9
- package/packages/scrabble-solver/src/components/Radio/Radio.module.scss +0 -61
- package/packages/scrabble-solver/src/components/Radio/Radio.module.scss.d.ts +0 -12
- package/packages/scrabble-solver/src/components/Radio/Radio.tsx +0 -39
- package/packages/scrabble-solver/src/components/Radio/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Results/Header.tsx +0 -114
- package/packages/scrabble-solver/src/components/Results/Result.tsx +0 -101
- package/packages/scrabble-solver/src/components/Results/Results.module.scss +0 -76
- package/packages/scrabble-solver/src/components/Results/Results.module.scss.d.ts +0 -17
- package/packages/scrabble-solver/src/components/Results/Results.tsx +0 -166
- package/packages/scrabble-solver/src/components/Results/SolveButton.tsx +0 -45
- package/packages/scrabble-solver/src/components/Results/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Results/types.ts +0 -15
- package/packages/scrabble-solver/src/components/Solver/Solver.module.scss +0 -116
- package/packages/scrabble-solver/src/components/Solver/Solver.module.scss.d.ts +0 -20
- package/packages/scrabble-solver/src/components/Solver/Solver.tsx +0 -143
- package/packages/scrabble-solver/src/components/Solver/components/InsertButton/InsertButton.module.scss +0 -15
- package/packages/scrabble-solver/src/components/Solver/components/InsertButton/InsertButton.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/components/Solver/components/InsertButton/InsertButton.tsx +0 -40
- package/packages/scrabble-solver/src/components/Solver/components/InsertButton/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.module.scss +0 -138
- package/packages/scrabble-solver/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.module.scss.d.ts +0 -19
- package/packages/scrabble-solver/src/components/Solver/components/ResultCandidatePicker/ResultCandidatePicker.tsx +0 -105
- package/packages/scrabble-solver/src/components/Solver/components/ResultCandidatePicker/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Solver/components/index.ts +0 -2
- package/packages/scrabble-solver/src/components/Solver/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Spinner/Spinner.module.scss +0 -11
- package/packages/scrabble-solver/src/components/Spinner/Spinner.module.scss.d.ts +0 -10
- package/packages/scrabble-solver/src/components/Spinner/Spinner.tsx +0 -17
- package/packages/scrabble-solver/src/components/Spinner/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Table/Cell.tsx +0 -42
- package/packages/scrabble-solver/src/components/Table/Header.tsx +0 -11
- package/packages/scrabble-solver/src/components/Table/HeaderButton.tsx +0 -61
- package/packages/scrabble-solver/src/components/Table/Row.tsx +0 -59
- package/packages/scrabble-solver/src/components/Table/Search.tsx +0 -43
- package/packages/scrabble-solver/src/components/Table/Table.module.scss +0 -147
- package/packages/scrabble-solver/src/components/Table/Table.module.scss.d.ts +0 -19
- package/packages/scrabble-solver/src/components/Table/index.ts +0 -5
- package/packages/scrabble-solver/src/components/Tile/Tile.module.scss +0 -129
- package/packages/scrabble-solver/src/components/Tile/Tile.module.scss.d.ts +0 -19
- package/packages/scrabble-solver/src/components/Tile/Tile.tsx +0 -101
- package/packages/scrabble-solver/src/components/Tile/TilePure.tsx +0 -106
- package/packages/scrabble-solver/src/components/Tile/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Tooltip/Tooltip.module.scss +0 -15
- package/packages/scrabble-solver/src/components/Tooltip/Tooltip.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/components/Tooltip/Tooltip.tsx +0 -42
- package/packages/scrabble-solver/src/components/Tooltip/TooltipContent.tsx +0 -53
- package/packages/scrabble-solver/src/components/Tooltip/TooltipTrigger.tsx +0 -30
- package/packages/scrabble-solver/src/components/Tooltip/context.ts +0 -17
- package/packages/scrabble-solver/src/components/Tooltip/index.ts +0 -1
- package/packages/scrabble-solver/src/components/Tooltip/useTooltip.ts +0 -55
- package/packages/scrabble-solver/src/hooks/useColumns.ts +0 -69
- package/packages/scrabble-solver/src/hooks/useDeferredRender.ts +0 -20
- package/packages/scrabble-solver/src/hooks/useDirection.ts +0 -21
- package/packages/scrabble-solver/src/hooks/useEffectOnce.ts +0 -11
- package/packages/scrabble-solver/src/hooks/useIsTouchDevice.ts +0 -5
- package/packages/scrabble-solver/src/hooks/useLanguage.ts +0 -20
- package/packages/scrabble-solver/src/hooks/useLatest.ts +0 -11
- package/packages/scrabble-solver/src/hooks/useLocalStorage.ts +0 -49
- package/packages/scrabble-solver/src/hooks/useMedia.ts +0 -34
- package/packages/scrabble-solver/src/hooks/useMediaQueries.ts +0 -11
- package/packages/scrabble-solver/src/hooks/useMediaQuery.ts +0 -10
- package/packages/scrabble-solver/src/i18n/constants.ts +0 -106
- package/packages/scrabble-solver/src/i18n/i18n.ts +0 -25
- package/packages/scrabble-solver/src/i18n/languages/english.json +0 -88
- package/packages/scrabble-solver/src/i18n/languages/french.json +0 -88
- package/packages/scrabble-solver/src/i18n/languages/german.json +0 -88
- package/packages/scrabble-solver/src/i18n/languages/persian.json +0 -88
- package/packages/scrabble-solver/src/i18n/languages/polish.json +0 -88
- package/packages/scrabble-solver/src/i18n/languages/romanian.json +0 -88
- package/packages/scrabble-solver/src/i18n/languages/spanish.json +0 -88
- package/packages/scrabble-solver/src/i18n/languages/turkish.json +0 -88
- package/packages/scrabble-solver/src/i18n/localeIcons.ts +0 -24
- package/packages/scrabble-solver/src/icons/ArrowDown.svg +0 -4
- package/packages/scrabble-solver/src/icons/ArrowLeft.svg +0 -4
- package/packages/scrabble-solver/src/icons/ArrowRight.svg +0 -4
- package/packages/scrabble-solver/src/icons/ArrowUp.svg +0 -4
- package/packages/scrabble-solver/src/icons/Ban.svg +0 -4
- package/packages/scrabble-solver/src/icons/BookHalf.svg +0 -4
- package/packages/scrabble-solver/src/icons/CardChecklist.svg +0 -5
- package/packages/scrabble-solver/src/icons/Check.svg +0 -4
- package/packages/scrabble-solver/src/icons/ChevronDown.svg +0 -4
- package/packages/scrabble-solver/src/icons/ChevronLeft.svg +0 -4
- package/packages/scrabble-solver/src/icons/ChevronRight.svg +0 -4
- package/packages/scrabble-solver/src/icons/Cog.svg +0 -4
- package/packages/scrabble-solver/src/icons/Cross.svg +0 -4
- package/packages/scrabble-solver/src/icons/CrossCircleFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/CrossSquareFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/DashCircleFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/Eraser.svg +0 -4
- package/packages/scrabble-solver/src/icons/ExclamationSquareFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/ExclamationTriangleFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/EyeFill.svg +0 -5
- package/packages/scrabble-solver/src/icons/FlagDe.svg +0 -5
- package/packages/scrabble-solver/src/icons/FlagEs.svg +0 -4
- package/packages/scrabble-solver/src/icons/FlagFa.svg +0 -95
- package/packages/scrabble-solver/src/icons/FlagFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/FlagFr.svg +0 -5
- package/packages/scrabble-solver/src/icons/FlagGb.svg +0 -10
- package/packages/scrabble-solver/src/icons/FlagPl.svg +0 -4
- package/packages/scrabble-solver/src/icons/FlagRo.svg +0 -5
- package/packages/scrabble-solver/src/icons/FlagTr.svg +0 -4
- package/packages/scrabble-solver/src/icons/FlagUs.svg +0 -33
- package/packages/scrabble-solver/src/icons/GeoAlt.svg +0 -5
- package/packages/scrabble-solver/src/icons/Github.svg +0 -4
- package/packages/scrabble-solver/src/icons/InfoCircleFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/Keyboard.svg +0 -5
- package/packages/scrabble-solver/src/icons/KeyboardFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/List.svg +0 -4
- package/packages/scrabble-solver/src/icons/OneTwoThree.svg +0 -4
- package/packages/scrabble-solver/src/icons/QuestionSquare.svg +0 -5
- package/packages/scrabble-solver/src/icons/Sack.svg +0 -4
- package/packages/scrabble-solver/src/icons/Search.svg +0 -4
- package/packages/scrabble-solver/src/icons/SortDown.svg +0 -4
- package/packages/scrabble-solver/src/icons/SortUp.svg +0 -4
- package/packages/scrabble-solver/src/icons/Square.svg +0 -4
- package/packages/scrabble-solver/src/icons/SquareA.svg +0 -6
- package/packages/scrabble-solver/src/icons/SquareB.svg +0 -6
- package/packages/scrabble-solver/src/icons/SquareFill.svg +0 -4
- package/packages/scrabble-solver/src/icons/Squares.svg +0 -34
- package/packages/scrabble-solver/src/icons/Words.svg +0 -22
- package/packages/scrabble-solver/src/lib/arrayEquals.ts +0 -3
- package/packages/scrabble-solver/src/lib/createComparator.ts +0 -20
- package/packages/scrabble-solver/src/lib/createCoordinatesComparator.ts +0 -23
- package/packages/scrabble-solver/src/lib/createHighlightWords.test.ts +0 -13
- package/packages/scrabble-solver/src/lib/createHighlightWords.ts +0 -9
- package/packages/scrabble-solver/src/lib/createKeyComparator.ts +0 -23
- package/packages/scrabble-solver/src/lib/createKeyboardNavigation.ts +0 -46
- package/packages/scrabble-solver/src/lib/createNullMovingComparator.test.ts +0 -15
- package/packages/scrabble-solver/src/lib/createNullMovingComparator.ts +0 -17
- package/packages/scrabble-solver/src/lib/createRegExp.ts +0 -11
- package/packages/scrabble-solver/src/lib/createSortComparator.ts +0 -22
- package/packages/scrabble-solver/src/lib/createStringComparator.ts +0 -7
- package/packages/scrabble-solver/src/lib/extractCharacters.test.ts +0 -52
- package/packages/scrabble-solver/src/lib/extractCharacters.ts +0 -42
- package/packages/scrabble-solver/src/lib/extractInputValue.ts +0 -15
- package/packages/scrabble-solver/src/lib/findCell.ts +0 -5
- package/packages/scrabble-solver/src/lib/getCoordinate.test.ts +0 -22
- package/packages/scrabble-solver/src/lib/getCoordinate.ts +0 -17
- package/packages/scrabble-solver/src/lib/getCoordinates.test.ts +0 -21
- package/packages/scrabble-solver/src/lib/getCoordinates.ts +0 -16
- package/packages/scrabble-solver/src/lib/getNextSort.ts +0 -12
- package/packages/scrabble-solver/src/lib/inverseDirection.ts +0 -3
- package/packages/scrabble-solver/src/lib/isCtrl.ts +0 -5
- package/packages/scrabble-solver/src/lib/isMac.ts +0 -7
- package/packages/scrabble-solver/src/lib/isRegExp.ts +0 -9
- package/packages/scrabble-solver/src/lib/isStringArray.ts +0 -3
- package/packages/scrabble-solver/src/lib/localeTransliterate.test.ts +0 -19
- package/packages/scrabble-solver/src/lib/localeTransliterate.ts +0 -38
- package/packages/scrabble-solver/src/lib/memoize.ts +0 -64
- package/packages/scrabble-solver/src/lib/noop.ts +0 -1
- package/packages/scrabble-solver/src/lib/numberComparator.ts +0 -3
- package/packages/scrabble-solver/src/lib/reverseComparator.ts +0 -5
- package/packages/scrabble-solver/src/lib/unorderedArraysEqual.ts +0 -12
- package/packages/scrabble-solver/src/lib/waitForIdleOrFirstIntent.ts +0 -44
- package/packages/scrabble-solver/src/lib/zipCharactersAndTiles.ts +0 -28
- package/packages/scrabble-solver/src/modals/DictionaryModal/DictionaryModal.module.scss +0 -22
- package/packages/scrabble-solver/src/modals/DictionaryModal/DictionaryModal.module.scss.d.ts +0 -8
- package/packages/scrabble-solver/src/modals/DictionaryModal/DictionaryModal.tsx +0 -29
- package/packages/scrabble-solver/src/modals/DictionaryModal/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/KeyMapModal/KeyMapModal.tsx +0 -65
- package/packages/scrabble-solver/src/modals/KeyMapModal/components/Mapping/Mapping.module.scss +0 -48
- package/packages/scrabble-solver/src/modals/KeyMapModal/components/Mapping/Mapping.module.scss.d.ts +0 -11
- package/packages/scrabble-solver/src/modals/KeyMapModal/components/Mapping/Mapping.tsx +0 -36
- package/packages/scrabble-solver/src/modals/KeyMapModal/components/Mapping/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/KeyMapModal/components/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/KeyMapModal/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/MenuModal/MenuModal.module.scss +0 -48
- package/packages/scrabble-solver/src/modals/MenuModal/MenuModal.module.scss.d.ts +0 -10
- package/packages/scrabble-solver/src/modals/MenuModal/MenuModal.tsx +0 -93
- package/packages/scrabble-solver/src/modals/MenuModal/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/RemainingTilesModal.module.scss +0 -25
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/RemainingTilesModal.module.scss.d.ts +0 -9
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/RemainingTilesModal.tsx +0 -61
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/Character/Character.module.scss +0 -50
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/Character/Character.module.scss.d.ts +0 -12
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/Character/Character.tsx +0 -89
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/Character/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/components/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/lib.ts +0 -81
- package/packages/scrabble-solver/src/modals/RemainingTilesModal/selectors.ts +0 -7
- package/packages/scrabble-solver/src/modals/ResultsModal/ResultsModal.module.scss +0 -20
- package/packages/scrabble-solver/src/modals/ResultsModal/ResultsModal.module.scss.d.ts +0 -8
- package/packages/scrabble-solver/src/modals/ResultsModal/ResultsModal.tsx +0 -107
- package/packages/scrabble-solver/src/modals/ResultsModal/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/SettingsModal.tsx +0 -65
- package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/AutoGroupTilesSetting.module.scss +0 -12
- package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/AutoGroupTilesSetting.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/AutoGroupTilesSetting.tsx +0 -58
- package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/constants.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/AutoGroupTilesSetting/lib.ts +0 -15
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.module.scss +0 -12
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.tsx +0 -45
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/lib.ts +0 -19
- package/packages/scrabble-solver/src/modals/SettingsModal/components/HighlightUnreachableCellsSetting/HighlightUnreachableCellsSetting.module.scss +0 -12
- package/packages/scrabble-solver/src/modals/SettingsModal/components/HighlightUnreachableCellsSetting/HighlightUnreachableCellsSetting.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/modals/SettingsModal/components/HighlightUnreachableCellsSetting/HighlightUnreachableCellsSetting.tsx +0 -51
- package/packages/scrabble-solver/src/modals/SettingsModal/components/HighlightUnreachableCellsSetting/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/InputModeSetting.module.scss +0 -12
- package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/InputModeSetting.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/InputModeSetting.tsx +0 -53
- package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/lib.ts +0 -13
- package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.module.scss +0 -20
- package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.module.scss.d.ts +0 -8
- package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.tsx +0 -54
- package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/RemoveCellFiltersSetting/RemoveCellFiltersSetting.module.scss +0 -12
- package/packages/scrabble-solver/src/modals/SettingsModal/components/RemoveCellFiltersSetting/RemoveCellFiltersSetting.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/modals/SettingsModal/components/RemoveCellFiltersSetting/RemoveCellFiltersSetting.tsx +0 -53
- package/packages/scrabble-solver/src/modals/SettingsModal/components/RemoveCellFiltersSetting/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/RemoveCellFiltersSetting/lib.ts +0 -13
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ShowCoordinatesSetting/ShowCoordinatesSetting.module.scss +0 -12
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ShowCoordinatesSetting/ShowCoordinatesSetting.module.scss.d.ts +0 -7
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ShowCoordinatesSetting/ShowCoordinatesSetting.tsx +0 -53
- package/packages/scrabble-solver/src/modals/SettingsModal/components/ShowCoordinatesSetting/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/SettingsModal/components/index.ts +0 -7
- package/packages/scrabble-solver/src/modals/SettingsModal/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/WordsModal/WordsModal.module.scss +0 -24
- package/packages/scrabble-solver/src/modals/WordsModal/WordsModal.module.scss.d.ts +0 -8
- package/packages/scrabble-solver/src/modals/WordsModal/WordsModal.tsx +0 -75
- package/packages/scrabble-solver/src/modals/WordsModal/components/WordsTable/WordRow.tsx +0 -97
- package/packages/scrabble-solver/src/modals/WordsModal/components/WordsTable/WordsTable.module.scss +0 -69
- package/packages/scrabble-solver/src/modals/WordsModal/components/WordsTable/WordsTable.module.scss.d.ts +0 -16
- package/packages/scrabble-solver/src/modals/WordsModal/components/WordsTable/WordsTable.tsx +0 -137
- package/packages/scrabble-solver/src/modals/WordsModal/components/WordsTable/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/WordsModal/components/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/WordsModal/index.ts +0 -1
- package/packages/scrabble-solver/src/modals/preload.ts +0 -24
- package/packages/scrabble-solver/src/pages/_app.tsx +0 -52
- package/packages/scrabble-solver/src/pages/_document.tsx +0 -129
- package/packages/scrabble-solver/src/pages/api/dictionary/[locale]/[word].ts +0 -66
- package/packages/scrabble-solver/src/pages/api/dictionary/[locale]/index.ts +0 -123
- package/packages/scrabble-solver/src/pages/api/solve.ts +0 -103
- package/packages/scrabble-solver/src/pages/api/verify.ts +0 -78
- package/packages/scrabble-solver/src/pages/api/visit.ts +0 -44
- package/packages/scrabble-solver/src/pages/index.module.scss +0 -31
- package/packages/scrabble-solver/src/pages/index.module.scss.d.ts +0 -11
- package/packages/scrabble-solver/src/pages/index.tsx +0 -274
- package/packages/scrabble-solver/src/pages/not-found.tsx +0 -16
- package/packages/scrabble-solver/src/parameters/index.ts +0 -81
- package/packages/scrabble-solver/src/sdk/fetch.ts +0 -28
- package/packages/scrabble-solver/src/sdk/fetchJson.ts +0 -9
- package/packages/scrabble-solver/src/sdk/findWordDefinitions.ts +0 -8
- package/packages/scrabble-solver/src/sdk/index.ts +0 -4
- package/packages/scrabble-solver/src/sdk/solve.ts +0 -19
- package/packages/scrabble-solver/src/sdk/verify.ts +0 -20
- package/packages/scrabble-solver/src/sdk/visit.ts +0 -10
- package/packages/scrabble-solver/src/service-worker/appShell.test.ts +0 -86
- package/packages/scrabble-solver/src/service-worker/appShell.ts +0 -39
- package/packages/scrabble-solver/src/service-worker/index.ts +0 -22
- package/packages/scrabble-solver/src/serviceWorkerManager.ts +0 -12
- package/packages/scrabble-solver/src/solver-worker/client.test.ts +0 -158
- package/packages/scrabble-solver/src/solver-worker/client.ts +0 -106
- package/packages/scrabble-solver/src/solver-worker/dictionaries/constants.ts +0 -9
- package/packages/scrabble-solver/src/solver-worker/dictionaries/expirationManager.ts +0 -7
- package/packages/scrabble-solver/src/solver-worker/dictionaries/getDictionary.ts +0 -21
- package/packages/scrabble-solver/src/solver-worker/dictionaries/getDictionaryUrl.ts +0 -5
- package/packages/scrabble-solver/src/solver-worker/dictionaries/index.ts +0 -2
- package/packages/scrabble-solver/src/solver-worker/dictionaries/revalidateDictionary.test.ts +0 -199
- package/packages/scrabble-solver/src/solver-worker/dictionaries/revalidateDictionary.ts +0 -86
- package/packages/scrabble-solver/src/solver-worker/dictionaries/revalidatedAt.ts +0 -43
- package/packages/scrabble-solver/src/solver-worker/getGaddag.test.ts +0 -109
- package/packages/scrabble-solver/src/solver-worker/getGaddag.ts +0 -62
- package/packages/scrabble-solver/src/solver-worker/index.ts +0 -1
- package/packages/scrabble-solver/src/solver-worker/index.worker.ts +0 -124
- package/packages/scrabble-solver/src/solver-worker/messages.ts +0 -20
- package/packages/scrabble-solver/src/state/actions.ts +0 -5
- package/packages/scrabble-solver/src/state/app/index.ts +0 -4
- package/packages/scrabble-solver/src/state/app/initialState.ts +0 -6
- package/packages/scrabble-solver/src/state/app/selectors.ts +0 -5
- package/packages/scrabble-solver/src/state/app/slice.ts +0 -20
- package/packages/scrabble-solver/src/state/app/types.ts +0 -4
- package/packages/scrabble-solver/src/state/board/index.ts +0 -4
- package/packages/scrabble-solver/src/state/board/initialState.ts +0 -38
- package/packages/scrabble-solver/src/state/board/selectors.ts +0 -3
- package/packages/scrabble-solver/src/state/board/slice.ts +0 -101
- package/packages/scrabble-solver/src/state/board/types.ts +0 -3
- package/packages/scrabble-solver/src/state/cellFilters/index.ts +0 -4
- package/packages/scrabble-solver/src/state/cellFilters/initialState.ts +0 -3
- package/packages/scrabble-solver/src/state/cellFilters/lib.ts +0 -8
- package/packages/scrabble-solver/src/state/cellFilters/selectors.ts +0 -13
- package/packages/scrabble-solver/src/state/cellFilters/slice.ts +0 -49
- package/packages/scrabble-solver/src/state/cellFilters/types.ts +0 -3
- package/packages/scrabble-solver/src/state/dictionary/index.ts +0 -4
- package/packages/scrabble-solver/src/state/dictionary/initialState.ts +0 -8
- package/packages/scrabble-solver/src/state/dictionary/selectors.ts +0 -16
- package/packages/scrabble-solver/src/state/dictionary/slice.ts +0 -34
- package/packages/scrabble-solver/src/state/dictionary/types.ts +0 -8
- package/packages/scrabble-solver/src/state/hoveredTile/index.ts +0 -4
- package/packages/scrabble-solver/src/state/hoveredTile/initialState.ts +0 -5
- package/packages/scrabble-solver/src/state/hoveredTile/selectors.ts +0 -3
- package/packages/scrabble-solver/src/state/hoveredTile/slice.ts +0 -16
- package/packages/scrabble-solver/src/state/hoveredTile/types.ts +0 -3
- package/packages/scrabble-solver/src/state/hoveredWord/index.ts +0 -4
- package/packages/scrabble-solver/src/state/hoveredWord/initialState.ts +0 -5
- package/packages/scrabble-solver/src/state/hoveredWord/selectors.ts +0 -5
- package/packages/scrabble-solver/src/state/hoveredWord/slice.ts +0 -18
- package/packages/scrabble-solver/src/state/hoveredWord/types.ts +0 -5
- package/packages/scrabble-solver/src/state/i18n/index.ts +0 -4
- package/packages/scrabble-solver/src/state/i18n/initialState.ts +0 -5
- package/packages/scrabble-solver/src/state/i18n/selectors.ts +0 -3
- package/packages/scrabble-solver/src/state/i18n/slice.ts +0 -16
- package/packages/scrabble-solver/src/state/i18n/types.ts +0 -7
- package/packages/scrabble-solver/src/state/index.ts +0 -19
- package/packages/scrabble-solver/src/state/lib.ts +0 -46
- package/packages/scrabble-solver/src/state/localStorage.ts +0 -142
- package/packages/scrabble-solver/src/state/rack/index.ts +0 -4
- package/packages/scrabble-solver/src/state/rack/initialState.ts +0 -11
- package/packages/scrabble-solver/src/state/rack/selectors.ts +0 -7
- package/packages/scrabble-solver/src/state/rack/slice.ts +0 -56
- package/packages/scrabble-solver/src/state/rack/types.ts +0 -3
- package/packages/scrabble-solver/src/state/results/index.ts +0 -4
- package/packages/scrabble-solver/src/state/results/initialState.ts +0 -13
- package/packages/scrabble-solver/src/state/results/lib.ts +0 -86
- package/packages/scrabble-solver/src/state/results/selectors.ts +0 -83
- package/packages/scrabble-solver/src/state/results/slice.ts +0 -43
- package/packages/scrabble-solver/src/state/results/types.ts +0 -10
- package/packages/scrabble-solver/src/state/sagas.ts +0 -395
- package/packages/scrabble-solver/src/state/selectors.ts +0 -52
- package/packages/scrabble-solver/src/state/settings/index.ts +0 -4
- package/packages/scrabble-solver/src/state/settings/initialState.ts +0 -16
- package/packages/scrabble-solver/src/state/settings/lib.ts +0 -42
- package/packages/scrabble-solver/src/state/settings/selectors.ts +0 -78
- package/packages/scrabble-solver/src/state/settings/slice.ts +0 -54
- package/packages/scrabble-solver/src/state/settings/types.ts +0 -13
- package/packages/scrabble-solver/src/state/solve/index.ts +0 -4
- package/packages/scrabble-solver/src/state/solve/initialState.ts +0 -12
- package/packages/scrabble-solver/src/state/solve/selectors.ts +0 -14
- package/packages/scrabble-solver/src/state/solve/slice.ts +0 -33
- package/packages/scrabble-solver/src/state/solve/types.ts +0 -10
- package/packages/scrabble-solver/src/state/store.ts +0 -38
- package/packages/scrabble-solver/src/state/types.ts +0 -27
- package/packages/scrabble-solver/src/state/useTranslate.ts +0 -32
- package/packages/scrabble-solver/src/state/useTypedSelector.ts +0 -5
- package/packages/scrabble-solver/src/state/useTypedStore.ts +0 -6
- package/packages/scrabble-solver/src/state/verify/index.ts +0 -4
- package/packages/scrabble-solver/src/state/verify/initialState.ts +0 -19
- package/packages/scrabble-solver/src/state/verify/lib.test.ts +0 -55
- package/packages/scrabble-solver/src/state/verify/lib.ts +0 -49
- package/packages/scrabble-solver/src/state/verify/selectors.ts +0 -46
- package/packages/scrabble-solver/src/state/verify/slice.ts +0 -40
- package/packages/scrabble-solver/src/state/verify/types.ts +0 -14
- package/packages/scrabble-solver/src/styles/_tokens.scss +0 -60
- package/packages/scrabble-solver/src/styles/animations.scss +0 -49
- package/packages/scrabble-solver/src/styles/global.scss +0 -61
- package/packages/scrabble-solver/src/styles/mixins.scss +0 -117
- package/packages/scrabble-solver/src/styles/variables.module.scss +0 -32
- package/packages/scrabble-solver/src/styles/variables.module.scss.d.ts +0 -27
- package/packages/scrabble-solver/src/styles/variables.scss +0 -176
- package/packages/scrabble-solver/src/types/api.ts +0 -21
- package/packages/scrabble-solver/src/types/index.ts +0 -177
- package/packages/scrabble-solver/tsconfig.json +0 -27
- package/packages/scrabble-solver/tsconfig.tsbuildinfo +0 -1
- package/packages/solver/README.md +0 -29
- package/packages/solver/benchmarks/index.ts +0 -15
- package/packages/solver/benchmarks/lib.ts +0 -31
- package/packages/solver/benchmarks/renderChart.ts +0 -165
- package/packages/solver/benchmarks/results/chart.svg +0 -65
- package/packages/solver/benchmarks/runBenchmarks.ts +0 -66
- package/packages/solver/benchmarks/scenarios.ts +0 -64
- package/packages/solver/benchmarks/types.ts +0 -16
- package/packages/solver/benchmarks/updateReadme.ts +0 -53
- package/packages/solver/build/MoveGenerator.d.ts +0 -116
- package/packages/solver/build/MoveGenerator.js +0 -686
- package/packages/solver/build/index.d.ts +0 -1
- package/packages/solver/build/index.js +0 -5
- package/packages/solver/build/solve.d.ts +0 -3
- package/packages/solver/build/solve.js +0 -8
- package/packages/solver/package.json +0 -45
- package/packages/solver/src/MoveGenerator.test.ts +0 -1009
- package/packages/solver/src/MoveGenerator.ts +0 -926
- package/packages/solver/src/ReferenceSolver.ts +0 -401
- package/packages/solver/src/index.ts +0 -1
- package/packages/solver/src/solve.test.ts +0 -225
- package/packages/solver/src/solve.ts +0 -8
- package/packages/solver/tsconfig.json +0 -10
- package/packages/types/README.md +0 -3
- package/packages/types/build/Bingo.d.ts +0 -7
- package/packages/types/build/Bingo.js +0 -2
- package/packages/types/build/Board.d.ts +0 -33
- package/packages/types/build/Board.js +0 -106
- package/packages/types/build/BoardJson.d.ts +0 -2
- package/packages/types/build/BoardJson.js +0 -2
- package/packages/types/build/BoardWord.d.ts +0 -7
- package/packages/types/build/BoardWord.js +0 -2
- package/packages/types/build/Bonus.d.ts +0 -22
- package/packages/types/build/Bonus.js +0 -33
- package/packages/types/build/BonusJson.d.ts +0 -7
- package/packages/types/build/BonusJson.js +0 -2
- package/packages/types/build/BonusValue.d.ts +0 -4
- package/packages/types/build/BonusValue.js +0 -2
- package/packages/types/build/Cell.d.ts +0 -22
- package/packages/types/build/Cell.js +0 -52
- package/packages/types/build/CellJson.d.ts +0 -7
- package/packages/types/build/CellJson.js +0 -2
- package/packages/types/build/CharacterBonus.d.ts +0 -10
- package/packages/types/build/CharacterBonus.js +0 -27
- package/packages/types/build/Collision.d.ts +0 -2
- package/packages/types/build/Collision.js +0 -2
- package/packages/types/build/Config.d.ts +0 -36
- package/packages/types/build/Config.js +0 -105
- package/packages/types/build/ConfigJson.d.ts +0 -18
- package/packages/types/build/ConfigJson.js +0 -2
- package/packages/types/build/Dictionary.d.ts +0 -6
- package/packages/types/build/Dictionary.js +0 -2
- package/packages/types/build/Direction.d.ts +0 -1
- package/packages/types/build/Direction.js +0 -2
- package/packages/types/build/Game.d.ts +0 -11
- package/packages/types/build/Game.js +0 -15
- package/packages/types/build/Locale.d.ts +0 -16
- package/packages/types/build/Locale.js +0 -20
- package/packages/types/build/Result.d.ts +0 -32
- package/packages/types/build/Result.js +0 -61
- package/packages/types/build/ResultJson.d.ts +0 -9
- package/packages/types/build/ResultJson.js +0 -2
- package/packages/types/build/ShowCoordinates.d.ts +0 -5
- package/packages/types/build/ShowCoordinates.js +0 -2
- package/packages/types/build/TextDirection.d.ts +0 -1
- package/packages/types/build/TextDirection.js +0 -2
- package/packages/types/build/Tile.d.ts +0 -15
- package/packages/types/build/Tile.js +0 -46
- package/packages/types/build/TileConfig.d.ts +0 -5
- package/packages/types/build/TileConfig.js +0 -2
- package/packages/types/build/TileJson.d.ts +0 -4
- package/packages/types/build/TileJson.js +0 -2
- package/packages/types/build/WordBonus.d.ts +0 -6
- package/packages/types/build/WordBonus.js +0 -18
- package/packages/types/build/WordDefinition.d.ts +0 -17
- package/packages/types/build/WordDefinition.js +0 -38
- package/packages/types/build/WordDefinitionJson.d.ts +0 -12
- package/packages/types/build/WordDefinitionJson.js +0 -2
- package/packages/types/build/index.d.ts +0 -29
- package/packages/types/build/index.js +0 -38
- package/packages/types/build/lib/getBoardWords.d.ts +0 -3
- package/packages/types/build/lib/getBoardWords.js +0 -10
- package/packages/types/build/lib/getCells.d.ts +0 -4
- package/packages/types/build/lib/getCells.js +0 -27
- package/packages/types/build/lib/getCollidingWords.d.ts +0 -3
- package/packages/types/build/lib/getCollidingWords.js +0 -19
- package/packages/types/build/lib/getCollision.d.ts +0 -3
- package/packages/types/build/lib/getCollision.js +0 -31
- package/packages/types/build/lib/getCollisions.d.ts +0 -3
- package/packages/types/build/lib/getCollisions.js +0 -17
- package/packages/types/build/lib/getPlacedCell.d.ts +0 -3
- package/packages/types/build/lib/getPlacedCell.js +0 -10
- package/packages/types/build/lib/getWordThrough.d.ts +0 -4
- package/packages/types/build/lib/getWordThrough.js +0 -23
- package/packages/types/build/lib/getWordsInRows.d.ts +0 -8
- package/packages/types/build/lib/getWordsInRows.js +0 -29
- package/packages/types/build/lib/index.d.ts +0 -5
- package/packages/types/build/lib/index.js +0 -21
- package/packages/types/build/lib/isSameBoardWord.d.ts +0 -2
- package/packages/types/build/lib/isSameBoardWord.js +0 -6
- package/packages/types/build/lib/toBoardWord.d.ts +0 -4
- package/packages/types/build/lib/toBoardWord.js +0 -11
- package/packages/types/build/lib/transpose.d.ts +0 -1
- package/packages/types/build/lib/transpose.js +0 -16
- package/packages/types/build/type-guards/index.d.ts +0 -10
- package/packages/types/build/type-guards/index.js +0 -23
- package/packages/types/build/type-guards/isBingo.d.ts +0 -2
- package/packages/types/build/type-guards/isBingo.js +0 -9
- package/packages/types/build/type-guards/isBoardJson.d.ts +0 -2
- package/packages/types/build/type-guards/isBoardJson.js +0 -21
- package/packages/types/build/type-guards/isCellJson.d.ts +0 -2
- package/packages/types/build/type-guards/isCellJson.js +0 -13
- package/packages/types/build/type-guards/isError.d.ts +0 -1
- package/packages/types/build/type-guards/isError.js +0 -11
- package/packages/types/build/type-guards/isGame.d.ts +0 -2
- package/packages/types/build/type-guards/isGame.js +0 -7
- package/packages/types/build/type-guards/isLocale.d.ts +0 -2
- package/packages/types/build/type-guards/isLocale.js +0 -7
- package/packages/types/build/type-guards/isMultiplierBingo.d.ts +0 -2
- package/packages/types/build/type-guards/isMultiplierBingo.js +0 -8
- package/packages/types/build/type-guards/isObject.d.ts +0 -1
- package/packages/types/build/type-guards/isObject.js +0 -7
- package/packages/types/build/type-guards/isScoreBingo.d.ts +0 -2
- package/packages/types/build/type-guards/isScoreBingo.js +0 -8
- package/packages/types/build/type-guards/isTileJson.d.ts +0 -2
- package/packages/types/build/type-guards/isTileJson.js +0 -8
- package/packages/types/package.json +0 -37
- package/packages/types/src/Bingo.ts +0 -5
- package/packages/types/src/Board.test.ts +0 -85
- package/packages/types/src/Board.ts +0 -141
- package/packages/types/src/BoardJson.ts +0 -3
- package/packages/types/src/BoardWord.ts +0 -8
- package/packages/types/src/Bonus.ts +0 -50
- package/packages/types/src/BonusJson.ts +0 -7
- package/packages/types/src/BonusValue.ts +0 -4
- package/packages/types/src/Cell.ts +0 -66
- package/packages/types/src/CellJson.ts +0 -8
- package/packages/types/src/CharacterBonus.ts +0 -29
- package/packages/types/src/Collision.ts +0 -3
- package/packages/types/src/Config.ts +0 -152
- package/packages/types/src/ConfigJson.ts +0 -19
- package/packages/types/src/Dictionary.ts +0 -7
- package/packages/types/src/Direction.ts +0 -1
- package/packages/types/src/Game.ts +0 -11
- package/packages/types/src/Locale.ts +0 -16
- package/packages/types/src/Result.ts +0 -118
- package/packages/types/src/ResultJson.ts +0 -9
- package/packages/types/src/ShowCoordinates.ts +0 -5
- package/packages/types/src/TextDirection.ts +0 -1
- package/packages/types/src/Tile.ts +0 -56
- package/packages/types/src/TileConfig.ts +0 -5
- package/packages/types/src/TileJson.ts +0 -4
- package/packages/types/src/WordBonus.ts +0 -15
- package/packages/types/src/WordDefinition.ts +0 -54
- package/packages/types/src/WordDefinitionJson.ts +0 -12
- package/packages/types/src/index.ts +0 -40
- package/packages/types/src/lib/getBoardWords.ts +0 -11
- package/packages/types/src/lib/getCells.test.ts +0 -127
- package/packages/types/src/lib/getCells.ts +0 -31
- package/packages/types/src/lib/getCollidingWords.ts +0 -25
- package/packages/types/src/lib/getCollision.ts +0 -38
- package/packages/types/src/lib/getCollisions.test.ts +0 -82
- package/packages/types/src/lib/getCollisions.ts +0 -22
- package/packages/types/src/lib/getPlacedCell.ts +0 -9
- package/packages/types/src/lib/getWordThrough.ts +0 -30
- package/packages/types/src/lib/getWordsInRows.ts +0 -34
- package/packages/types/src/lib/index.ts +0 -5
- package/packages/types/src/lib/isSameBoardWord.ts +0 -5
- package/packages/types/src/lib/toBoardWord.ts +0 -12
- package/packages/types/src/lib/transpose.ts +0 -15
- package/packages/types/src/type-guards/index.ts +0 -10
- package/packages/types/src/type-guards/isBingo.ts +0 -8
- package/packages/types/src/type-guards/isBoardJson.test.ts +0 -33
- package/packages/types/src/type-guards/isBoardJson.ts +0 -23
- package/packages/types/src/type-guards/isCellJson.ts +0 -14
- package/packages/types/src/type-guards/isError.ts +0 -9
- package/packages/types/src/type-guards/isGame.ts +0 -5
- package/packages/types/src/type-guards/isLocale.ts +0 -5
- package/packages/types/src/type-guards/isMultiplierBingo.ts +0 -7
- package/packages/types/src/type-guards/isObject.ts +0 -3
- package/packages/types/src/type-guards/isScoreBingo.ts +0 -7
- package/packages/types/src/type-guards/isTileJson.ts +0 -7
- package/packages/types/tsconfig.json +0 -10
- package/packages/word-definitions/README.md +0 -3
- package/packages/word-definitions/build/crawl.d.ts +0 -2
- package/packages/word-definitions/build/crawl.js +0 -20
- package/packages/word-definitions/build/getWordDefinition.d.ts +0 -2
- package/packages/word-definitions/build/getWordDefinition.js +0 -13
- package/packages/word-definitions/build/index.d.ts +0 -5
- package/packages/word-definitions/build/index.js +0 -21
- package/packages/word-definitions/build/languages/english.d.ts +0 -3
- package/packages/word-definitions/build/languages/english.js +0 -38
- package/packages/word-definitions/build/languages/french.d.ts +0 -3
- package/packages/word-definitions/build/languages/french.js +0 -22
- package/packages/word-definitions/build/languages/german.d.ts +0 -3
- package/packages/word-definitions/build/languages/german.js +0 -70
- package/packages/word-definitions/build/languages/index.d.ts +0 -8
- package/packages/word-definitions/build/languages/index.js +0 -44
- package/packages/word-definitions/build/languages/persian.d.ts +0 -3
- package/packages/word-definitions/build/languages/persian.js +0 -23
- package/packages/word-definitions/build/languages/polish.d.ts +0 -3
- package/packages/word-definitions/build/languages/polish.js +0 -24
- package/packages/word-definitions/build/languages/romanian.d.ts +0 -3
- package/packages/word-definitions/build/languages/romanian.js +0 -26
- package/packages/word-definitions/build/languages/spanish.d.ts +0 -3
- package/packages/word-definitions/build/languages/spanish.js +0 -39
- package/packages/word-definitions/build/languages/turkish.d.ts +0 -3
- package/packages/word-definitions/build/languages/turkish.js +0 -31
- package/packages/word-definitions/build/lib/index.d.ts +0 -3
- package/packages/word-definitions/build/lib/index.js +0 -9
- package/packages/word-definitions/build/lib/normalizeDefinition.d.ts +0 -1
- package/packages/word-definitions/build/lib/normalizeDefinition.js +0 -46
- package/packages/word-definitions/build/lib/request.d.ts +0 -6
- package/packages/word-definitions/build/lib/request.js +0 -28
- package/packages/word-definitions/build/lib/unique.d.ts +0 -1
- package/packages/word-definitions/build/lib/unique.js +0 -5
- package/packages/word-definitions/build/parse.d.ts +0 -3
- package/packages/word-definitions/build/parse.js +0 -25
- package/packages/word-definitions/build/types.d.ts +0 -4
- package/packages/word-definitions/build/types.js +0 -2
- package/packages/word-definitions/package.json +0 -43
- package/packages/word-definitions/src/__tests__/expected/de-DE.hm.json +0 -4
- package/packages/word-definitions/src/__tests__/expected/de-DE.ho.json +0 -9
- package/packages/word-definitions/src/__tests__/expected/de-DE.kolla.json +0 -4
- package/packages/word-definitions/src/__tests__/expected/de-DE.vom.json +0 -16
- package/packages/word-definitions/src/__tests__/expected/en-US.awe.json +0 -12
- package/packages/word-definitions/src/__tests__/expected/en-US.oe.json +0 -7
- package/packages/word-definitions/src/__tests__/expected/en-US.pawn.json +0 -16
- package/packages/word-definitions/src/__tests__/expected/en-US.pawnee.json +0 -6
- package/packages/word-definitions/src/__tests__/expected/en-US.pean.json +0 -9
- package/packages/word-definitions/src/__tests__/expected/en-US.wiz.json +0 -10
- package/packages/word-definitions/src/__tests__/expected/en-US.zzzzqq.json +0 -4
- package/packages/word-definitions/src/__tests__/expected/es-ES.corma.json +0 -7
- package/packages/word-definitions/src/__tests__/expected/es-ES.portero.json +0 -9
- package/packages/word-definitions/src/__tests__/expected/ro-RO.aciua.json +0 -7
- package/packages/word-definitions/src/__tests__/expected/tr-TR.lojik.json +0 -4
- package/packages/word-definitions/src/__tests__/input/de-DE.hm.html +0 -873
- package/packages/word-definitions/src/__tests__/input/de-DE.ho.html +0 -1144
- package/packages/word-definitions/src/__tests__/input/de-DE.kolla.html +0 -980
- package/packages/word-definitions/src/__tests__/input/de-DE.vom.html +0 -738
- package/packages/word-definitions/src/__tests__/input/en-US.awe.json +0 -1
- package/packages/word-definitions/src/__tests__/input/en-US.oe.json +0 -1
- package/packages/word-definitions/src/__tests__/input/en-US.pawn.json +0 -1
- package/packages/word-definitions/src/__tests__/input/en-US.pawnee.json +0 -1
- package/packages/word-definitions/src/__tests__/input/en-US.pean.json +0 -1
- package/packages/word-definitions/src/__tests__/input/en-US.wiz.json +0 -1
- package/packages/word-definitions/src/__tests__/input/en-US.zzzzqq.json +0 -1
- package/packages/word-definitions/src/__tests__/input/es-ES.corma.html +0 -762
- package/packages/word-definitions/src/__tests__/input/es-ES.portero.html +0 -764
- package/packages/word-definitions/src/__tests__/input/ro-RO.aciua.html +0 -31
- package/packages/word-definitions/src/__tests__/input/tr-TR.lojik.html +0 -1
- package/packages/word-definitions/src/crawl.ts +0 -19
- package/packages/word-definitions/src/getWordDefinition.ts +0 -11
- package/packages/word-definitions/src/index.ts +0 -5
- package/packages/word-definitions/src/languages/english.ts +0 -53
- package/packages/word-definitions/src/languages/french.ts +0 -22
- package/packages/word-definitions/src/languages/german.ts +0 -88
- package/packages/word-definitions/src/languages/index.ts +0 -8
- package/packages/word-definitions/src/languages/persian.ts +0 -24
- package/packages/word-definitions/src/languages/polish.ts +0 -24
- package/packages/word-definitions/src/languages/romanian.ts +0 -27
- package/packages/word-definitions/src/languages/spanish.ts +0 -42
- package/packages/word-definitions/src/languages/turkish.ts +0 -32
- package/packages/word-definitions/src/lib/index.ts +0 -3
- package/packages/word-definitions/src/lib/normalizeDefinition.ts +0 -53
- package/packages/word-definitions/src/lib/request.ts +0 -30
- package/packages/word-definitions/src/lib/unique.ts +0 -1
- package/packages/word-definitions/src/parse.test.ts +0 -41
- package/packages/word-definitions/src/parse.ts +0 -26
- package/packages/word-definitions/src/types.ts +0 -4
- package/packages/word-definitions/tsconfig.json +0 -10
- package/packages/word-lists/README.md +0 -3
- package/packages/word-lists/build/getWordList.d.ts +0 -2
- package/packages/word-lists/build/getWordList.js +0 -18
- package/packages/word-lists/build/index.d.ts +0 -3
- package/packages/word-lists/build/index.js +0 -21
- package/packages/word-lists/build/languages/english.d.ts +0 -2
- package/packages/word-lists/build/languages/english.js +0 -15
- package/packages/word-lists/build/languages/french.d.ts +0 -1
- package/packages/word-lists/build/languages/french.js +0 -11
- package/packages/word-lists/build/languages/german.d.ts +0 -1
- package/packages/word-lists/build/languages/german.js +0 -10
- package/packages/word-lists/build/languages/index.d.ts +0 -8
- package/packages/word-lists/build/languages/index.js +0 -44
- package/packages/word-lists/build/languages/persian.d.ts +0 -1
- package/packages/word-lists/build/languages/persian.js +0 -10
- package/packages/word-lists/build/languages/polish.d.ts +0 -1
- package/packages/word-lists/build/languages/polish.js +0 -56
- package/packages/word-lists/build/languages/romanian.d.ts +0 -1
- package/packages/word-lists/build/languages/romanian.js +0 -11
- package/packages/word-lists/build/languages/spanish.d.ts +0 -1
- package/packages/word-lists/build/languages/spanish.js +0 -11
- package/packages/word-lists/build/languages/turkish.d.ts +0 -1
- package/packages/word-lists/build/languages/turkish.js +0 -10
- package/packages/word-lists/build/lib/downloadFile.d.ts +0 -1
- package/packages/word-lists/build/lib/downloadFile.js +0 -38
- package/packages/word-lists/build/lib/downloadHtml.d.ts +0 -1
- package/packages/word-lists/build/lib/downloadHtml.js +0 -21
- package/packages/word-lists/build/lib/extractWords.d.ts +0 -1
- package/packages/word-lists/build/lib/extractWords.js +0 -17
- package/packages/word-lists/build/lib/findFirstWordIndex.d.ts +0 -1
- package/packages/word-lists/build/lib/findFirstWordIndex.js +0 -17
- package/packages/word-lists/build/lib/getHash.d.ts +0 -1
- package/packages/word-lists/build/lib/getHash.js +0 -9
- package/packages/word-lists/build/lib/getTempFilepath.d.ts +0 -1
- package/packages/word-lists/build/lib/getTempFilepath.js +0 -15
- package/packages/word-lists/build/lib/getTxtWordList.d.ts +0 -1
- package/packages/word-lists/build/lib/getTxtWordList.js +0 -17
- package/packages/word-lists/build/lib/index.d.ts +0 -10
- package/packages/word-lists/build/lib/index.js +0 -23
- package/packages/word-lists/build/lib/transliterateDiacritics.d.ts +0 -2
- package/packages/word-lists/build/lib/transliterateDiacritics.js +0 -9
- package/packages/word-lists/build/lib/unique.d.ts +0 -1
- package/packages/word-lists/build/lib/unique.js +0 -5
- package/packages/word-lists/build/lib/unzip.d.ts +0 -1
- package/packages/word-lists/build/lib/unzip.js +0 -24
- package/packages/word-lists/package.json +0 -45
- package/packages/word-lists/src/getWordList.ts +0 -17
- package/packages/word-lists/src/index.ts +0 -3
- package/packages/word-lists/src/languages/english.ts +0 -16
- package/packages/word-lists/src/languages/french.ts +0 -11
- package/packages/word-lists/src/languages/german.ts +0 -10
- package/packages/word-lists/src/languages/index.ts +0 -8
- package/packages/word-lists/src/languages/persian.ts +0 -10
- package/packages/word-lists/src/languages/polish.ts +0 -59
- package/packages/word-lists/src/languages/romanian.ts +0 -10
- package/packages/word-lists/src/languages/spanish.ts +0 -10
- package/packages/word-lists/src/languages/turkish.ts +0 -9
- package/packages/word-lists/src/lib/downloadFile.ts +0 -37
- package/packages/word-lists/src/lib/downloadHtml.ts +0 -18
- package/packages/word-lists/src/lib/extractWords.ts +0 -17
- package/packages/word-lists/src/lib/findFirstWordIndex.ts +0 -16
- package/packages/word-lists/src/lib/getHash.ts +0 -3
- package/packages/word-lists/src/lib/getTempFilepath.ts +0 -11
- package/packages/word-lists/src/lib/getTxtWordList.ts +0 -12
- package/packages/word-lists/src/lib/index.ts +0 -10
- package/packages/word-lists/src/lib/transliterateDiacritics.ts +0 -7
- package/packages/word-lists/src/lib/unique.ts +0 -1
- package/packages/word-lists/src/lib/unzip.ts +0 -18
- package/packages/word-lists/tsconfig.json +0 -10
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Result = void 0;
|
|
4
|
-
const constants_1 = require("@scrabble-solver/constants");
|
|
5
|
-
const lib_1 = require("./lib");
|
|
6
|
-
class Result {
|
|
7
|
-
constructor({ cells, id, collisions, points, }) {
|
|
8
|
-
const tiles = getTiles(cells);
|
|
9
|
-
this.blanksCount = getBlanks(tiles).length;
|
|
10
|
-
this.cells = cells;
|
|
11
|
-
this.collisions = collisions;
|
|
12
|
-
this.consonantsCount = getConsonants(tiles).length;
|
|
13
|
-
this.id = id;
|
|
14
|
-
this.length = cells.length;
|
|
15
|
-
this.points = points;
|
|
16
|
-
this.pointsRatio = getPointsRatio(tiles, points);
|
|
17
|
-
this.tiles = tiles;
|
|
18
|
-
this.tilesCount = tiles.length;
|
|
19
|
-
this.vowelsCount = getVowels(tiles).length;
|
|
20
|
-
this.word = getWord(cells);
|
|
21
|
-
this.words = getWords(cells, collisions);
|
|
22
|
-
this.wordsCount = 1 + this.collisions.length;
|
|
23
|
-
}
|
|
24
|
-
toJson() {
|
|
25
|
-
const placed = this.cells.filter((cell) => cell.isEmpty);
|
|
26
|
-
return {
|
|
27
|
-
blankIndices: placed.flatMap((cell, index) => (cell.tile.isBlank ? [index] : [])),
|
|
28
|
-
id: this.id,
|
|
29
|
-
isHorizontal: this.isHorizontal(),
|
|
30
|
-
points: this.points,
|
|
31
|
-
tiles: placed.map((cell) => cell.tile.character),
|
|
32
|
-
x: this.cells[0].x,
|
|
33
|
-
y: this.cells[0].y,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
isHorizontal() {
|
|
37
|
-
return this.cells[0].y === this.cells[1].y;
|
|
38
|
-
}
|
|
39
|
-
isVertical() {
|
|
40
|
-
return this.cells[0].x === this.cells[1].x;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.Result = Result;
|
|
44
|
-
Result.fromJson = (json, board) => {
|
|
45
|
-
const cells = (0, lib_1.getCells)(board, json);
|
|
46
|
-
return new Result({
|
|
47
|
-
cells,
|
|
48
|
-
collisions: (0, lib_1.getCollisions)(board, cells, json.isHorizontal),
|
|
49
|
-
id: json.id,
|
|
50
|
-
points: json.points,
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
const getBlanks = (tiles) => tiles.filter(({ isBlank }) => isBlank);
|
|
54
|
-
const getConsonants = (tiles) => tiles.filter(isConsonant);
|
|
55
|
-
const getVowels = (tiles) => tiles.filter(isVowel);
|
|
56
|
-
const getPointsRatio = (tiles, points) => points / tiles.length;
|
|
57
|
-
const getTiles = (cells) => cells.filter(({ isEmpty }) => isEmpty).map(({ tile }) => tile);
|
|
58
|
-
const getWord = (cells) => cells.reduce((word, cell) => word + cell.toString(), '');
|
|
59
|
-
const getWords = (cells, collisions) => [cells, ...collisions].map(getWord);
|
|
60
|
-
const isConsonant = ({ character, isBlank }) => constants_1.CONSONANTS.includes(character) && !isBlank;
|
|
61
|
-
const isVowel = ({ character, isBlank }) => constants_1.VOWELS.includes(character) && !isBlank;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TextDirection = 'ltr' | 'rtl';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type TileJson } from './TileJson';
|
|
2
|
-
export declare class Tile {
|
|
3
|
-
static fromJson: (json: TileJson | null) => Tile;
|
|
4
|
-
static readonly Null: Tile;
|
|
5
|
-
character: string;
|
|
6
|
-
isBlank: boolean;
|
|
7
|
-
constructor({ character, isBlank }: {
|
|
8
|
-
character: string;
|
|
9
|
-
isBlank?: boolean;
|
|
10
|
-
});
|
|
11
|
-
clone(): Tile;
|
|
12
|
-
equals(other: Tile): boolean;
|
|
13
|
-
toJson(): TileJson | null;
|
|
14
|
-
toString(): string;
|
|
15
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tile = void 0;
|
|
4
|
-
const constants_1 = require("@scrabble-solver/constants");
|
|
5
|
-
class Tile {
|
|
6
|
-
constructor({ character, isBlank = false }) {
|
|
7
|
-
this.character = character;
|
|
8
|
-
this.isBlank = isBlank;
|
|
9
|
-
}
|
|
10
|
-
clone() {
|
|
11
|
-
return new Tile({
|
|
12
|
-
character: this.character,
|
|
13
|
-
isBlank: this.isBlank,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
equals(other) {
|
|
17
|
-
return this.character === other.character && this.isBlank === other.isBlank;
|
|
18
|
-
}
|
|
19
|
-
toJson() {
|
|
20
|
-
return {
|
|
21
|
-
character: this.character,
|
|
22
|
-
isBlank: this.isBlank,
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
toString() {
|
|
26
|
-
return this.character;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.Tile = Tile;
|
|
30
|
-
Tile.fromJson = (json) => {
|
|
31
|
-
if (!json) {
|
|
32
|
-
return Tile.Null;
|
|
33
|
-
}
|
|
34
|
-
return new Tile({
|
|
35
|
-
character: json.character,
|
|
36
|
-
isBlank: json.isBlank,
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
Tile.Null = Object.freeze({
|
|
40
|
-
character: constants_1.EMPTY_CELL,
|
|
41
|
-
isBlank: false,
|
|
42
|
-
clone: () => Tile.Null,
|
|
43
|
-
equals: (other) => other === Tile.Null,
|
|
44
|
-
toJson: () => null,
|
|
45
|
-
toString: () => constants_1.EMPTY_CELL,
|
|
46
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WordBonus = void 0;
|
|
4
|
-
const constants_1 = require("@scrabble-solver/constants");
|
|
5
|
-
const Bonus_1 = require("./Bonus");
|
|
6
|
-
class WordBonus extends Bonus_1.Bonus {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.type = constants_1.BONUS_WORD;
|
|
10
|
-
}
|
|
11
|
-
get value() {
|
|
12
|
-
return {
|
|
13
|
-
characterMultiplier: 1,
|
|
14
|
-
wordMultiplier: this.multiplier,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.WordBonus = WordBonus;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type WordDefinitionJson } from './WordDefinitionJson';
|
|
2
|
-
export declare class WordDefinition {
|
|
3
|
-
static fromJson: (json: WordDefinitionJson | null) => WordDefinition;
|
|
4
|
-
static readonly Null: WordDefinition;
|
|
5
|
-
readonly definitions: string[];
|
|
6
|
-
/**
|
|
7
|
-
* Does the word have an entry in a corresponding online dictionary?
|
|
8
|
-
*/
|
|
9
|
-
readonly exists: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Can the word be legally used in the game?
|
|
12
|
-
*/
|
|
13
|
-
readonly isAllowed: boolean;
|
|
14
|
-
readonly word: string;
|
|
15
|
-
constructor({ definitions, exists, isAllowed, word }: WordDefinitionJson);
|
|
16
|
-
toJson(): WordDefinitionJson | null;
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WordDefinition = void 0;
|
|
4
|
-
class WordDefinition {
|
|
5
|
-
constructor({ definitions, exists, isAllowed, word }) {
|
|
6
|
-
this.definitions = definitions;
|
|
7
|
-
this.exists = exists;
|
|
8
|
-
this.isAllowed = isAllowed;
|
|
9
|
-
this.word = word;
|
|
10
|
-
}
|
|
11
|
-
toJson() {
|
|
12
|
-
return {
|
|
13
|
-
definitions: this.definitions,
|
|
14
|
-
exists: this.exists,
|
|
15
|
-
isAllowed: this.isAllowed,
|
|
16
|
-
word: this.word,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.WordDefinition = WordDefinition;
|
|
21
|
-
WordDefinition.fromJson = (json) => {
|
|
22
|
-
if (!json) {
|
|
23
|
-
return WordDefinition.Null;
|
|
24
|
-
}
|
|
25
|
-
return new WordDefinition({
|
|
26
|
-
definitions: json.definitions,
|
|
27
|
-
exists: json.exists,
|
|
28
|
-
isAllowed: json.isAllowed,
|
|
29
|
-
word: json.word,
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
WordDefinition.Null = Object.freeze({
|
|
33
|
-
definitions: [],
|
|
34
|
-
exists: false,
|
|
35
|
-
isAllowed: false,
|
|
36
|
-
word: '',
|
|
37
|
-
toJson: () => null,
|
|
38
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface WordDefinitionJson {
|
|
2
|
-
definitions: string[];
|
|
3
|
-
/**
|
|
4
|
-
* Does the word have an entry in a corresponding online dictionary?
|
|
5
|
-
*/
|
|
6
|
-
exists: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Can the word be legally used in the game?
|
|
9
|
-
*/
|
|
10
|
-
isAllowed: boolean;
|
|
11
|
-
word: string;
|
|
12
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { Bingo } from './Bingo';
|
|
2
|
-
export { Board } from './Board';
|
|
3
|
-
export { BoardJson } from './BoardJson';
|
|
4
|
-
export { BoardWord } from './BoardWord';
|
|
5
|
-
export { Bonus } from './Bonus';
|
|
6
|
-
export { BonusJson } from './BonusJson';
|
|
7
|
-
export { BonusValue } from './BonusValue';
|
|
8
|
-
export { Cell } from './Cell';
|
|
9
|
-
export { CellJson } from './CellJson';
|
|
10
|
-
export { CharacterBonus } from './CharacterBonus';
|
|
11
|
-
export { Collision } from './Collision';
|
|
12
|
-
export { Config } from './Config';
|
|
13
|
-
export { ConfigJson } from './ConfigJson';
|
|
14
|
-
export { Dictionary } from './Dictionary';
|
|
15
|
-
export { Direction } from './Direction';
|
|
16
|
-
export { Game } from './Game';
|
|
17
|
-
export { isSameBoardWord } from './lib';
|
|
18
|
-
export { Locale } from './Locale';
|
|
19
|
-
export { Result } from './Result';
|
|
20
|
-
export { ResultJson } from './ResultJson';
|
|
21
|
-
export { ShowCoordinates } from './ShowCoordinates';
|
|
22
|
-
export { TextDirection } from './TextDirection';
|
|
23
|
-
export { Tile } from './Tile';
|
|
24
|
-
export { TileConfig } from './TileConfig';
|
|
25
|
-
export { TileJson } from './TileJson';
|
|
26
|
-
export { isBingo, isBoardJson, isCellJson, isError, isGame, isLocale, isMultiplierBingo, isObject, isScoreBingo, isTileJson, } from './type-guards';
|
|
27
|
-
export { WordBonus } from './WordBonus';
|
|
28
|
-
export { WordDefinition } from './WordDefinition';
|
|
29
|
-
export { WordDefinitionJson } from './WordDefinitionJson';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WordDefinition = exports.WordBonus = exports.isTileJson = exports.isScoreBingo = exports.isObject = exports.isMultiplierBingo = exports.isLocale = exports.isGame = exports.isError = exports.isCellJson = exports.isBoardJson = exports.isBingo = exports.Tile = exports.Result = exports.Locale = exports.isSameBoardWord = exports.Game = exports.Config = exports.CharacterBonus = exports.Cell = exports.Bonus = exports.Board = void 0;
|
|
4
|
-
var Board_1 = require("./Board");
|
|
5
|
-
Object.defineProperty(exports, "Board", { enumerable: true, get: function () { return Board_1.Board; } });
|
|
6
|
-
var Bonus_1 = require("./Bonus");
|
|
7
|
-
Object.defineProperty(exports, "Bonus", { enumerable: true, get: function () { return Bonus_1.Bonus; } });
|
|
8
|
-
var Cell_1 = require("./Cell");
|
|
9
|
-
Object.defineProperty(exports, "Cell", { enumerable: true, get: function () { return Cell_1.Cell; } });
|
|
10
|
-
var CharacterBonus_1 = require("./CharacterBonus");
|
|
11
|
-
Object.defineProperty(exports, "CharacterBonus", { enumerable: true, get: function () { return CharacterBonus_1.CharacterBonus; } });
|
|
12
|
-
var Config_1 = require("./Config");
|
|
13
|
-
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return Config_1.Config; } });
|
|
14
|
-
var Game_1 = require("./Game");
|
|
15
|
-
Object.defineProperty(exports, "Game", { enumerable: true, get: function () { return Game_1.Game; } });
|
|
16
|
-
var lib_1 = require("./lib");
|
|
17
|
-
Object.defineProperty(exports, "isSameBoardWord", { enumerable: true, get: function () { return lib_1.isSameBoardWord; } });
|
|
18
|
-
var Locale_1 = require("./Locale");
|
|
19
|
-
Object.defineProperty(exports, "Locale", { enumerable: true, get: function () { return Locale_1.Locale; } });
|
|
20
|
-
var Result_1 = require("./Result");
|
|
21
|
-
Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return Result_1.Result; } });
|
|
22
|
-
var Tile_1 = require("./Tile");
|
|
23
|
-
Object.defineProperty(exports, "Tile", { enumerable: true, get: function () { return Tile_1.Tile; } });
|
|
24
|
-
var type_guards_1 = require("./type-guards");
|
|
25
|
-
Object.defineProperty(exports, "isBingo", { enumerable: true, get: function () { return type_guards_1.isBingo; } });
|
|
26
|
-
Object.defineProperty(exports, "isBoardJson", { enumerable: true, get: function () { return type_guards_1.isBoardJson; } });
|
|
27
|
-
Object.defineProperty(exports, "isCellJson", { enumerable: true, get: function () { return type_guards_1.isCellJson; } });
|
|
28
|
-
Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return type_guards_1.isError; } });
|
|
29
|
-
Object.defineProperty(exports, "isGame", { enumerable: true, get: function () { return type_guards_1.isGame; } });
|
|
30
|
-
Object.defineProperty(exports, "isLocale", { enumerable: true, get: function () { return type_guards_1.isLocale; } });
|
|
31
|
-
Object.defineProperty(exports, "isMultiplierBingo", { enumerable: true, get: function () { return type_guards_1.isMultiplierBingo; } });
|
|
32
|
-
Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return type_guards_1.isObject; } });
|
|
33
|
-
Object.defineProperty(exports, "isScoreBingo", { enumerable: true, get: function () { return type_guards_1.isScoreBingo; } });
|
|
34
|
-
Object.defineProperty(exports, "isTileJson", { enumerable: true, get: function () { return type_guards_1.isTileJson; } });
|
|
35
|
-
var WordBonus_1 = require("./WordBonus");
|
|
36
|
-
Object.defineProperty(exports, "WordBonus", { enumerable: true, get: function () { return WordBonus_1.WordBonus; } });
|
|
37
|
-
var WordDefinition_1 = require("./WordDefinition");
|
|
38
|
-
Object.defineProperty(exports, "WordDefinition", { enumerable: true, get: function () { return WordDefinition_1.WordDefinition; } });
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBoardWords = getBoardWords;
|
|
4
|
-
const getWordsInRows_1 = require("./getWordsInRows");
|
|
5
|
-
const transpose_1 = require("./transpose");
|
|
6
|
-
function getBoardWords(board) {
|
|
7
|
-
const horizontalWords = (0, getWordsInRows_1.getWordsInRows)(board.rows, 'horizontal');
|
|
8
|
-
const verticalWords = (0, getWordsInRows_1.getWordsInRows)((0, transpose_1.transpose)(board.rows), 'vertical');
|
|
9
|
-
return [...horizontalWords, ...verticalWords];
|
|
10
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCells = getCells;
|
|
4
|
-
const getPlacedCell_1 = require("./getPlacedCell");
|
|
5
|
-
function getCells(board, json) {
|
|
6
|
-
const stepX = json.isHorizontal ? 1 : 0;
|
|
7
|
-
const stepY = json.isHorizontal ? 0 : 1;
|
|
8
|
-
const cells = [];
|
|
9
|
-
let placedIndex = 0;
|
|
10
|
-
let { x, y } = json;
|
|
11
|
-
while (y < board.rowsCount && x < board.columnsCount) {
|
|
12
|
-
const boardCell = board.rows[y][x];
|
|
13
|
-
if (boardCell.isFilled()) {
|
|
14
|
-
cells.push(boardCell.clone());
|
|
15
|
-
}
|
|
16
|
-
else if (placedIndex < json.tiles.length) {
|
|
17
|
-
cells.push((0, getPlacedCell_1.getPlacedCell)(json, placedIndex, x, y));
|
|
18
|
-
placedIndex += 1;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
x += stepX;
|
|
24
|
-
y += stepY;
|
|
25
|
-
}
|
|
26
|
-
return cells;
|
|
27
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCollidingWords = getCollidingWords;
|
|
4
|
-
const getWordThrough_1 = require("./getWordThrough");
|
|
5
|
-
function getCollidingWords(board, word) {
|
|
6
|
-
const isHorizontal = word.direction === 'horizontal';
|
|
7
|
-
const collidingDirection = isHorizontal ? 'vertical' : 'horizontal';
|
|
8
|
-
const collidingWords = [];
|
|
9
|
-
let { x, y } = word;
|
|
10
|
-
while (x < board.columnsCount && y < board.rowsCount && !board.rows[y][x].isEmpty) {
|
|
11
|
-
const collidingWord = (0, getWordThrough_1.getWordThrough)(board, x, y, collidingDirection);
|
|
12
|
-
if (collidingWord) {
|
|
13
|
-
collidingWords.push(collidingWord);
|
|
14
|
-
}
|
|
15
|
-
x += isHorizontal ? 1 : 0;
|
|
16
|
-
y += isHorizontal ? 0 : 1;
|
|
17
|
-
}
|
|
18
|
-
return collidingWords;
|
|
19
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCollision = getCollision;
|
|
4
|
-
function getCollision(placed, board, isHorizontal) {
|
|
5
|
-
const stepX = isHorizontal ? 0 : 1;
|
|
6
|
-
const stepY = isHorizontal ? 1 : 0;
|
|
7
|
-
let x = placed.x - stepX;
|
|
8
|
-
let y = placed.y - stepY;
|
|
9
|
-
while (x >= 0 && y >= 0 && board.rows[y][x].isFilled()) {
|
|
10
|
-
x -= stepX;
|
|
11
|
-
y -= stepY;
|
|
12
|
-
}
|
|
13
|
-
x += stepX;
|
|
14
|
-
y += stepY;
|
|
15
|
-
const collision = [];
|
|
16
|
-
while (y < board.rowsCount && x < board.columnsCount) {
|
|
17
|
-
if (x === placed.x && y === placed.y) {
|
|
18
|
-
collision.push(placed);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
const boardCell = board.rows[y][x];
|
|
22
|
-
if (!boardCell.isFilled()) {
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
collision.push(boardCell.clone());
|
|
26
|
-
}
|
|
27
|
-
x += stepX;
|
|
28
|
-
y += stepY;
|
|
29
|
-
}
|
|
30
|
-
return collision;
|
|
31
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCollisions = getCollisions;
|
|
4
|
-
const getCollision_1 = require("./getCollision");
|
|
5
|
-
function getCollisions(board, cells, isHorizontal) {
|
|
6
|
-
const collisions = [];
|
|
7
|
-
for (const cell of cells) {
|
|
8
|
-
if (cell.isFilled()) {
|
|
9
|
-
continue;
|
|
10
|
-
}
|
|
11
|
-
const collision = (0, getCollision_1.getCollision)(cell, board, isHorizontal);
|
|
12
|
-
if (collision.length > 1) {
|
|
13
|
-
collisions.push(collision);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return collisions;
|
|
17
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPlacedCell = getPlacedCell;
|
|
4
|
-
const Cell_1 = require("../Cell");
|
|
5
|
-
const Tile_1 = require("../Tile");
|
|
6
|
-
function getPlacedCell(json, placedIndex, x, y) {
|
|
7
|
-
const character = json.tiles[placedIndex];
|
|
8
|
-
const isBlank = json.blankIndices.includes(placedIndex);
|
|
9
|
-
return new Cell_1.Cell({ isEmpty: true, tile: new Tile_1.Tile({ character, isBlank }), x, y });
|
|
10
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getWordThrough = getWordThrough;
|
|
4
|
-
const toBoardWord_1 = require("./toBoardWord");
|
|
5
|
-
function getWordThrough(board, x, y, direction) {
|
|
6
|
-
const stepX = direction === 'horizontal' ? 1 : 0;
|
|
7
|
-
const stepY = direction === 'horizontal' ? 0 : 1;
|
|
8
|
-
let startX = x;
|
|
9
|
-
let startY = y;
|
|
10
|
-
while (startX - stepX >= 0 && startY - stepY >= 0 && !board.rows[startY - stepY][startX - stepX].isEmpty) {
|
|
11
|
-
startX -= stepX;
|
|
12
|
-
startY -= stepY;
|
|
13
|
-
}
|
|
14
|
-
const cells = [];
|
|
15
|
-
let cellX = startX;
|
|
16
|
-
let cellY = startY;
|
|
17
|
-
while (cellX < board.columnsCount && cellY < board.rowsCount && !board.rows[cellY][cellX].isEmpty) {
|
|
18
|
-
cells.push(board.rows[cellY][cellX]);
|
|
19
|
-
cellX += stepX;
|
|
20
|
-
cellY += stepY;
|
|
21
|
-
}
|
|
22
|
-
return cells.length > 1 ? (0, toBoardWord_1.toBoardWord)(cells, direction) : undefined;
|
|
23
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type BoardWord } from '../BoardWord';
|
|
2
|
-
import { type Cell } from '../Cell';
|
|
3
|
-
import { type Direction } from '../Direction';
|
|
4
|
-
/**
|
|
5
|
-
* Cells in transposed rows keep their original coordinates,
|
|
6
|
-
* so the first cell of a run is the word's start in both directions.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getWordsInRows(cells: Cell[][], direction: Direction): BoardWord[];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getWordsInRows = getWordsInRows;
|
|
4
|
-
const toBoardWord_1 = require("./toBoardWord");
|
|
5
|
-
/**
|
|
6
|
-
* Cells in transposed rows keep their original coordinates,
|
|
7
|
-
* so the first cell of a run is the word's start in both directions.
|
|
8
|
-
*/
|
|
9
|
-
function getWordsInRows(cells, direction) {
|
|
10
|
-
const words = [];
|
|
11
|
-
for (const row of cells) {
|
|
12
|
-
let currentWord = [];
|
|
13
|
-
for (const cell of row) {
|
|
14
|
-
if (!cell.isEmpty) {
|
|
15
|
-
currentWord.push(cell);
|
|
16
|
-
}
|
|
17
|
-
else if (currentWord.length > 0) {
|
|
18
|
-
if (currentWord.length > 1) {
|
|
19
|
-
words.push((0, toBoardWord_1.toBoardWord)(currentWord, direction));
|
|
20
|
-
}
|
|
21
|
-
currentWord = [];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if (currentWord.length > 1) {
|
|
25
|
-
words.push((0, toBoardWord_1.toBoardWord)(currentWord, direction));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return words;
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./getBoardWords"), exports);
|
|
18
|
-
__exportStar(require("./getCells"), exports);
|
|
19
|
-
__exportStar(require("./getCollidingWords"), exports);
|
|
20
|
-
__exportStar(require("./getCollisions"), exports);
|
|
21
|
-
__exportStar(require("./isSameBoardWord"), exports);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toBoardWord = toBoardWord;
|
|
4
|
-
function toBoardWord(cells, direction) {
|
|
5
|
-
return {
|
|
6
|
-
direction,
|
|
7
|
-
word: cells.map((cell) => cell.tile.character).join(''),
|
|
8
|
-
x: cells[0].x,
|
|
9
|
-
y: cells[0].y,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transpose<T>(array: T[][]): T[][];
|