@johnmorrisdotca/kumimoji 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/CONTRIBUTING.md +11 -2
- package/README.md +2 -2
- package/dist/check.js +4 -2
- package/dist/computerPlay.js +11 -4
- package/dist/computerTurn.js +5 -2
- package/dist/daily.js +1 -1
- package/dist/element.d.ts +1 -1
- package/dist/element.js +313 -162
- package/dist/export.js +18 -5
- package/dist/generate.js +18 -5
- package/dist/grid.js +26 -4
- package/dist/index.d.ts +22 -22
- package/dist/index.js +22 -22
- package/dist/kana.js +39 -6
- package/dist/party.js +28 -5
- package/dist/partyKept.js +53 -8
- package/dist/partySeats.js +11 -4
- package/dist/partyTurns.js +16 -3
- package/dist/placement.js +5 -2
- package/dist/play.js +14 -3
- package/dist/react.js +33 -3
- package/dist/showcase.js +12 -3
- package/dist/tileWords.js +11 -6
- package/dist/tileWordsModule.d.ts +1 -1
- package/dist/tileWordsModule.js +3 -1
- package/dist/tiles.constants.js +72 -8
- package/dist/turn.js +6 -1
- package/dist/ui/board.js +16 -2
- package/dist/ui/draw.d.ts +62 -0
- package/dist/ui/draw.js +229 -0
- package/dist/ui/mount.js +163 -275
- package/dist/ui/style.d.ts +1 -1
- package/dist/ui/style.js +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wilds.js +3 -2
- package/package.json +12 -13
package/dist/version.js
CHANGED
package/dist/wilds.js
CHANGED
|
@@ -27,7 +27,7 @@ import { runsOf } from "./grid.js";
|
|
|
27
27
|
* console.log(WILD_SEARCH_MOST);
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
export const WILD_SEARCH_MOST =
|
|
30
|
+
export const WILD_SEARCH_MOST = 20_000;
|
|
31
31
|
/** The grid with every blank wild read as a letter that makes all its runs words, or null for none; the grid itself when it holds no blank.
|
|
32
32
|
*
|
|
33
33
|
* @param tiles - The map from row,column square names to internal tile codes.
|
|
@@ -124,7 +124,8 @@ function patternFits(words) {
|
|
|
124
124
|
return already;
|
|
125
125
|
const found = (words.byLength.get(sounds.length) ?? []).some((word) => {
|
|
126
126
|
const letters = [...word];
|
|
127
|
-
return letters.length === sounds.length &&
|
|
127
|
+
return (letters.length === sounds.length &&
|
|
128
|
+
sounds.every((sound, at) => sound === null || words.soundOf(letters[at]) === sound));
|
|
128
129
|
});
|
|
129
130
|
known.set(key, found);
|
|
130
131
|
return found;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/kumimoji",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Kumimoji
|
|
3
|
+
"version": "1.3.1",
|
|
4
|
+
"description": "Kumimoji 組み文字 — Crossword tile game in English and Japanese: seeded bags, solo races, two-to-eight-player tables, word lists and a playable table for React, Vue, Svelte, Angular or plain HTML. Zero dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
7
7
|
"anagram",
|
|
@@ -135,14 +135,15 @@
|
|
|
135
135
|
},
|
|
136
136
|
"scripts": {
|
|
137
137
|
"build": "tsc -p tsconfig.json",
|
|
138
|
-
"lint": "
|
|
138
|
+
"lint": "biome check .",
|
|
139
139
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
140
140
|
"test": "vitest run",
|
|
141
141
|
"test:table": "pnpm test:demo",
|
|
142
142
|
"test:package": "pnpm build && node scripts/check-package.mjs",
|
|
143
143
|
"family:readme": "node scripts/family-readme.mjs",
|
|
144
144
|
"test:frameworks": "pnpm build && node scripts/check-frameworks.mjs",
|
|
145
|
-
"check": "
|
|
145
|
+
"check:size": "node scripts/check-size.mjs",
|
|
146
|
+
"check": "pnpm lint && pnpm typecheck && pnpm test && pnpm check:size",
|
|
146
147
|
"site": "pnpm build && node scripts/site.mjs",
|
|
147
148
|
"docs:make": "node scripts/docs.mjs",
|
|
148
149
|
"prepublishOnly": "pnpm check && pnpm build",
|
|
@@ -151,7 +152,8 @@
|
|
|
151
152
|
"docs:site": "pnpm build && node scripts/docs-site.mjs build",
|
|
152
153
|
"docs:check": "pnpm build && node scripts/docs-site.mjs check",
|
|
153
154
|
"size": "node scripts/docs-site.mjs size",
|
|
154
|
-
"test:demo": "pnpm site && node scripts/docs-site.mjs build && playwright test"
|
|
155
|
+
"test:demo": "pnpm site && node scripts/docs-site.mjs build && playwright test",
|
|
156
|
+
"format": "biome check --write ."
|
|
155
157
|
},
|
|
156
158
|
"peerDependencies": {
|
|
157
159
|
"react": ">=18"
|
|
@@ -162,20 +164,17 @@
|
|
|
162
164
|
}
|
|
163
165
|
},
|
|
164
166
|
"devDependencies": {
|
|
165
|
-
"@
|
|
167
|
+
"@biomejs/biome": "2.6.4",
|
|
166
168
|
"@playwright/test": "^1.63.0",
|
|
167
169
|
"@types/node": "^24.0.0",
|
|
168
170
|
"@types/react": "^19.0.0",
|
|
169
|
-
"
|
|
171
|
+
"esbuild": "^0.28.0",
|
|
170
172
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
171
|
-
"
|
|
173
|
+
"marked": "^18.0.0",
|
|
174
|
+
"pagefind": "^1.5.2",
|
|
172
175
|
"react": "^19.0.0",
|
|
173
176
|
"typescript": "^5.9.0",
|
|
174
|
-
"
|
|
175
|
-
"vitest": "^5.0.0",
|
|
176
|
-
"pagefind": "^1.5.2",
|
|
177
|
-
"marked": "^18.0.0",
|
|
178
|
-
"esbuild": "^0.28.0"
|
|
177
|
+
"vitest": "^5.0.0"
|
|
179
178
|
},
|
|
180
179
|
"publishConfig": {
|
|
181
180
|
"access": "public"
|