scrabble-solver 2.12.2 → 2.12.3

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.
Files changed (240) hide show
  1. package/README.md +31 -4
  2. package/lerna.json +1 -1
  3. package/package.json +3 -2
  4. package/packages/configs/build/games/index.d.ts +3 -0
  5. package/packages/configs/build/games/index.js +12 -0
  6. package/packages/configs/build/games/literaki.d.ts +25 -0
  7. package/packages/configs/build/games/literaki.js +110 -0
  8. package/packages/configs/build/games/scrabble.d.ts +18 -0
  9. package/packages/configs/build/games/scrabble.js +78 -0
  10. package/packages/configs/build/games/superScrabble.d.ts +18 -0
  11. package/packages/configs/build/games/superScrabble.js +141 -0
  12. package/packages/configs/build/getConfig.d.ts +2 -6
  13. package/packages/configs/build/getConfig.js +29 -10
  14. package/packages/configs/build/hasConfig.d.ts +3 -0
  15. package/packages/configs/build/hasConfig.js +31 -0
  16. package/packages/configs/build/index.d.ts +7 -4
  17. package/packages/configs/build/index.js +32 -9
  18. package/packages/configs/build/locales/deDe.d.ts +3 -0
  19. package/packages/configs/build/locales/deDe.js +42 -0
  20. package/packages/configs/build/locales/enGb.d.ts +3 -0
  21. package/packages/configs/build/locales/enGb.js +104 -0
  22. package/packages/configs/build/locales/enUs.d.ts +3 -0
  23. package/packages/configs/build/locales/enUs.js +104 -0
  24. package/packages/configs/build/locales/esEs.d.ts +3 -0
  25. package/packages/configs/build/locales/esEs.js +41 -0
  26. package/packages/configs/build/locales/faIr.d.ts +3 -0
  27. package/packages/configs/build/locales/faIr.js +45 -0
  28. package/packages/configs/build/locales/frFr.d.ts +3 -0
  29. package/packages/configs/build/locales/frFr.js +39 -0
  30. package/packages/configs/build/locales/index.d.ts +7 -0
  31. package/packages/configs/build/locales/index.js +20 -0
  32. package/packages/configs/build/locales/plPl.d.ts +3 -0
  33. package/packages/configs/build/locales/plPl.js +83 -0
  34. package/packages/configs/package.json +3 -3
  35. package/packages/configs/src/games/index.ts +3 -0
  36. package/packages/configs/src/games/literaki.ts +110 -0
  37. package/packages/configs/src/games/scrabble.ts +78 -0
  38. package/packages/configs/src/games/superScrabble.ts +141 -0
  39. package/packages/configs/src/getConfig.ts +8 -15
  40. package/packages/configs/src/hasConfig.ts +10 -0
  41. package/packages/configs/src/index.ts +7 -4
  42. package/packages/configs/src/locales/deDe.ts +43 -0
  43. package/packages/configs/src/locales/enGb.ts +105 -0
  44. package/packages/configs/src/locales/enUs.ts +105 -0
  45. package/packages/configs/src/locales/esEs.ts +42 -0
  46. package/packages/configs/src/locales/faIr.ts +46 -0
  47. package/packages/configs/src/locales/frFr.ts +40 -0
  48. package/packages/configs/src/locales/index.ts +7 -0
  49. package/packages/configs/src/locales/plPl.ts +84 -0
  50. package/packages/constants/package.json +1 -1
  51. package/packages/dictionaries/package-lock.json +3 -10
  52. package/packages/dictionaries/package.json +4 -4
  53. package/packages/logger/package-lock.json +3 -224
  54. package/packages/logger/package.json +1 -1
  55. package/packages/scrabble-solver/.next/BUILD_ID +1 -1
  56. package/packages/scrabble-solver/.next/build-manifest.json +6 -6
  57. package/packages/scrabble-solver/.next/cache/.tsbuildinfo +1 -1
  58. package/packages/scrabble-solver/.next/cache/eslint/.cache_8dgz12 +1 -1
  59. package/packages/scrabble-solver/.next/cache/next-server.js.nft.json +1 -1
  60. package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -0
  61. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
  62. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/0.pack +0 -0
  63. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
  64. package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
  65. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
  66. package/packages/scrabble-solver/.next/next-server.js.nft.json +1 -1
  67. package/packages/scrabble-solver/.next/prerender-manifest.json +1 -1
  68. package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
  69. package/packages/scrabble-solver/.next/server/chunks/131.js +478 -106
  70. package/packages/scrabble-solver/.next/server/chunks/277.js +1132 -976
  71. package/packages/scrabble-solver/.next/server/chunks/44.js +36 -6
  72. package/packages/scrabble-solver/.next/server/chunks/865.js +478 -106
  73. package/packages/scrabble-solver/.next/server/chunks/911.js +894 -773
  74. package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +1 -1
  75. package/packages/scrabble-solver/.next/server/pages/404.html +1 -1
  76. package/packages/scrabble-solver/.next/server/pages/404.js.nft.json +1 -1
  77. package/packages/scrabble-solver/.next/server/pages/500.html +1 -1
  78. package/packages/scrabble-solver/.next/server/pages/_app.js +3 -1
  79. package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +1 -1
  80. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +4 -2
  81. package/packages/scrabble-solver/.next/server/pages/api/solve.js +23 -19
  82. package/packages/scrabble-solver/.next/server/pages/api/verify.js +8 -5
  83. package/packages/scrabble-solver/.next/server/pages/index.html +1 -1
  84. package/packages/scrabble-solver/.next/server/pages/index.js +42 -55
  85. package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +1 -1
  86. package/packages/scrabble-solver/.next/server/pages/index.json +1 -1
  87. package/packages/scrabble-solver/.next/server/pages-manifest.json +1 -1
  88. package/packages/scrabble-solver/.next/static/chunks/pages/_app-e7f3d1c9c09c8f91.js +32 -0
  89. package/packages/scrabble-solver/.next/static/chunks/pages/index-82b2939158c7729f.js +1 -0
  90. package/packages/scrabble-solver/.next/static/css/4e8b47fe382a8a8f.css +2 -0
  91. package/packages/scrabble-solver/.next/static/css/cfae5256f1689f57.css +1 -0
  92. package/packages/scrabble-solver/.next/static/{9dmPfnTc_AQTHBPvL7xQe → wNIKOJJzkMSJYb2nOL21o}/_buildManifest.js +1 -1
  93. package/packages/scrabble-solver/.next/trace +51 -52
  94. package/packages/scrabble-solver/package-lock.json +158 -4898
  95. package/packages/scrabble-solver/package.json +8 -8
  96. package/packages/scrabble-solver/src/components/Board/components/Cell/Cell.module.scss +4 -12
  97. package/packages/scrabble-solver/src/components/Board/components/Cell/Cell.tsx +4 -0
  98. package/packages/scrabble-solver/src/components/Board/hooks/useBackgroundImage.tsx +23 -0
  99. package/packages/scrabble-solver/src/components/PlainTiles/lib/createPlainTile.ts +4 -4
  100. package/packages/scrabble-solver/src/components/Radio/Radio.module.scss +4 -0
  101. package/packages/scrabble-solver/src/components/Radio/Radio.tsx +1 -0
  102. package/packages/scrabble-solver/src/components/SeoMessage/SeoMessage.tsx +3 -3
  103. package/packages/scrabble-solver/src/hooks/useAppLayout.ts +1 -2
  104. package/packages/scrabble-solver/src/hooks/useLocalStorage.ts +5 -5
  105. package/packages/scrabble-solver/src/i18n/constants.ts +31 -61
  106. package/packages/scrabble-solver/src/lib/extractCharacters.test.ts +3 -3
  107. package/packages/scrabble-solver/src/lib/extractCharactersByCase.test.ts +3 -3
  108. package/packages/scrabble-solver/src/lib/getCellSize.ts +2 -2
  109. package/packages/scrabble-solver/src/modals/MenuModal/MenuModal.module.scss +0 -1
  110. package/packages/scrabble-solver/src/modals/MenuModal/MenuModal.tsx +3 -3
  111. package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/ConfigSetting.tsx +16 -7
  112. package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.module.scss +1 -4
  113. package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/LocaleSetting.tsx +8 -8
  114. package/packages/scrabble-solver/src/pages/_app.tsx +3 -1
  115. package/packages/scrabble-solver/src/pages/api/dictionary/[locale]/[word].ts +6 -3
  116. package/packages/scrabble-solver/src/pages/api/solve.ts +11 -7
  117. package/packages/scrabble-solver/src/pages/api/verify.ts +11 -7
  118. package/packages/scrabble-solver/src/pages/index.module.scss +0 -1
  119. package/packages/scrabble-solver/src/parameters/index.ts +4 -6
  120. package/packages/scrabble-solver/src/sdk/solve.ts +3 -3
  121. package/packages/scrabble-solver/src/sdk/verify.ts +3 -3
  122. package/packages/scrabble-solver/src/service-worker/routeSolveRequests.ts +3 -3
  123. package/packages/scrabble-solver/src/state/localStorage.ts +6 -6
  124. package/packages/scrabble-solver/src/state/sagas.ts +18 -7
  125. package/packages/scrabble-solver/src/state/selectors.ts +3 -3
  126. package/packages/scrabble-solver/src/state/slices/boardInitialState.ts +3 -3
  127. package/packages/scrabble-solver/src/state/slices/boardSlice.ts +20 -6
  128. package/packages/scrabble-solver/src/state/slices/settingsInitialState.ts +3 -4
  129. package/packages/scrabble-solver/src/state/slices/settingsSlice.ts +5 -5
  130. package/packages/scrabble-solver/src/styles/variables.scss +0 -9
  131. package/packages/solver/build/getPatternHash.js +2 -2
  132. package/packages/solver/build/solve.js +3 -1
  133. package/packages/solver/package-lock.json +3 -10
  134. package/packages/solver/package.json +5 -5
  135. package/packages/solver/src/fillPattern.test.ts +3 -3
  136. package/packages/solver/src/generatePatterns.test.ts +13 -0
  137. package/packages/solver/src/getPatternHash.ts +2 -2
  138. package/packages/solver/src/getPatternScore.test.ts +4 -3
  139. package/packages/solver/src/solve.test.ts +68 -6
  140. package/packages/solver/src/solve.ts +4 -1
  141. package/packages/types/build/Config.d.ts +2 -0
  142. package/packages/types/build/Config.js +3 -0
  143. package/packages/types/build/ConfigJson.d.ts +2 -1
  144. package/packages/types/build/Dictionary.d.ts +7 -0
  145. package/packages/types/build/Dictionary.js +2 -0
  146. package/packages/types/build/Game.d.ts +7 -0
  147. package/packages/types/build/Game.js +13 -0
  148. package/packages/types/build/Locale.d.ts +5 -0
  149. package/packages/types/build/Locale.js +5 -1
  150. package/packages/types/build/index.d.ts +4 -2
  151. package/packages/types/build/index.js +8 -5
  152. package/packages/types/package.json +2 -2
  153. package/packages/types/src/Config.ts +5 -0
  154. package/packages/types/src/ConfigJson.ts +2 -1
  155. package/packages/types/src/Dictionary.ts +9 -0
  156. package/packages/types/src/Game.ts +11 -0
  157. package/packages/types/src/Locale.ts +5 -1
  158. package/packages/types/src/index.ts +4 -2
  159. package/packages/word-definitions/build/lib/normalizeDefinition.js +3 -1
  160. package/packages/word-definitions/package-lock.json +9 -159
  161. package/packages/word-definitions/package.json +2 -2
  162. package/packages/word-definitions/src/lib/normalizeDefinition.ts +3 -1
  163. package/packages/word-lists/package-lock.json +9 -401
  164. package/packages/word-lists/package.json +2 -2
  165. package/packages/configs/build/getLocaleConfig.d.ts +0 -3
  166. package/packages/configs/build/getLocaleConfig.js +0 -10
  167. package/packages/configs/build/isConfigId.d.ts +0 -2
  168. package/packages/configs/build/isConfigId.js +0 -12
  169. package/packages/configs/build/literaki/bonuses.d.ts +0 -14
  170. package/packages/configs/build/literaki/bonuses.js +0 -99
  171. package/packages/configs/build/literaki/index.d.ts +0 -1
  172. package/packages/configs/build/literaki/index.js +0 -8
  173. package/packages/configs/build/literaki/literaki.d.ts +0 -13
  174. package/packages/configs/build/literaki/literaki.js +0 -31
  175. package/packages/configs/build/literaki/tiles/index.d.ts +0 -6
  176. package/packages/configs/build/literaki/tiles/index.js +0 -18
  177. package/packages/configs/build/literaki/tiles/tilesDe.d.ts +0 -6
  178. package/packages/configs/build/literaki/tiles/tilesDe.js +0 -34
  179. package/packages/configs/build/literaki/tiles/tilesEn.d.ts +0 -6
  180. package/packages/configs/build/literaki/tiles/tilesEn.js +0 -31
  181. package/packages/configs/build/literaki/tiles/tilesEs.d.ts +0 -6
  182. package/packages/configs/build/literaki/tiles/tilesEs.js +0 -33
  183. package/packages/configs/build/literaki/tiles/tilesFa.d.ts +0 -6
  184. package/packages/configs/build/literaki/tiles/tilesFa.js +0 -37
  185. package/packages/configs/build/literaki/tiles/tilesFr.d.ts +0 -6
  186. package/packages/configs/build/literaki/tiles/tilesFr.js +0 -31
  187. package/packages/configs/build/literaki/tiles/tilesPl.d.ts +0 -6
  188. package/packages/configs/build/literaki/tiles/tilesPl.js +0 -37
  189. package/packages/configs/build/scrabble/bonuses.d.ts +0 -7
  190. package/packages/configs/build/scrabble/bonuses.js +0 -67
  191. package/packages/configs/build/scrabble/index.d.ts +0 -1
  192. package/packages/configs/build/scrabble/index.js +0 -8
  193. package/packages/configs/build/scrabble/scrabble.d.ts +0 -13
  194. package/packages/configs/build/scrabble/scrabble.js +0 -31
  195. package/packages/configs/build/scrabble/tiles/index.d.ts +0 -6
  196. package/packages/configs/build/scrabble/tiles/index.js +0 -18
  197. package/packages/configs/build/scrabble/tiles/tilesDe.d.ts +0 -6
  198. package/packages/configs/build/scrabble/tiles/tilesDe.js +0 -34
  199. package/packages/configs/build/scrabble/tiles/tilesEn.d.ts +0 -6
  200. package/packages/configs/build/scrabble/tiles/tilesEn.js +0 -31
  201. package/packages/configs/build/scrabble/tiles/tilesEs.d.ts +0 -6
  202. package/packages/configs/build/scrabble/tiles/tilesEs.js +0 -33
  203. package/packages/configs/build/scrabble/tiles/tilesFa.d.ts +0 -6
  204. package/packages/configs/build/scrabble/tiles/tilesFa.js +0 -37
  205. package/packages/configs/build/scrabble/tiles/tilesFr.d.ts +0 -6
  206. package/packages/configs/build/scrabble/tiles/tilesFr.js +0 -31
  207. package/packages/configs/build/scrabble/tiles/tilesPl.d.ts +0 -6
  208. package/packages/configs/build/scrabble/tiles/tilesPl.js +0 -37
  209. package/packages/configs/src/getLocaleConfig.ts +0 -9
  210. package/packages/configs/src/isConfigId.ts +0 -10
  211. package/packages/configs/src/literaki/bonuses.ts +0 -99
  212. package/packages/configs/src/literaki/index.ts +0 -1
  213. package/packages/configs/src/literaki/literaki.ts +0 -30
  214. package/packages/configs/src/literaki/tiles/index.ts +0 -6
  215. package/packages/configs/src/literaki/tiles/tilesDe.ts +0 -33
  216. package/packages/configs/src/literaki/tiles/tilesEn.ts +0 -30
  217. package/packages/configs/src/literaki/tiles/tilesEs.ts +0 -32
  218. package/packages/configs/src/literaki/tiles/tilesFa.ts +0 -36
  219. package/packages/configs/src/literaki/tiles/tilesFr.ts +0 -30
  220. package/packages/configs/src/literaki/tiles/tilesPl.ts +0 -36
  221. package/packages/configs/src/scrabble/bonuses.ts +0 -67
  222. package/packages/configs/src/scrabble/index.ts +0 -1
  223. package/packages/configs/src/scrabble/scrabble.ts +0 -30
  224. package/packages/configs/src/scrabble/tiles/index.ts +0 -6
  225. package/packages/configs/src/scrabble/tiles/tilesDe.ts +0 -33
  226. package/packages/configs/src/scrabble/tiles/tilesEn.ts +0 -30
  227. package/packages/configs/src/scrabble/tiles/tilesEs.ts +0 -32
  228. package/packages/configs/src/scrabble/tiles/tilesFa.ts +0 -36
  229. package/packages/configs/src/scrabble/tiles/tilesFr.ts +0 -30
  230. package/packages/configs/src/scrabble/tiles/tilesPl.ts +0 -36
  231. package/packages/scrabble-solver/.next/static/chunks/pages/_app-02851b06b95b19cb.js +0 -32
  232. package/packages/scrabble-solver/.next/static/chunks/pages/index-0ba5607d1aad8a09.js +0 -1
  233. package/packages/scrabble-solver/.next/static/css/09dfdea53eba31a9.css +0 -2
  234. package/packages/scrabble-solver/.next/static/css/60e8258da7362a1a.css +0 -1
  235. package/packages/scrabble-solver/src/i18n/i18n.module.scss +0 -27
  236. package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/options.ts +0 -19
  237. package/packages/scrabble-solver/src/modals/SettingsModal/components/ConfigSetting/types.ts +0 -9
  238. package/packages/scrabble-solver/src/modals/SettingsModal/components/InputModeSetting/types.ts +0 -7
  239. package/packages/scrabble-solver/src/modals/SettingsModal/components/LocaleSetting/types.ts +0 -9
  240. /package/packages/scrabble-solver/.next/static/{9dmPfnTc_AQTHBPvL7xQe → wNIKOJJzkMSJYb2nOL21o}/_ssgManifest.js +0 -0
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tilesFa = [
4
- { character: 'ا', count: 12, score: 1 },
5
- { character: 'ب', count: 4, score: 1 },
6
- { character: 'پ', count: 1, score: 6 },
7
- { character: 'ت', count: 4, score: 1 },
8
- { character: 'ث', count: 1, score: 10 },
9
- { character: 'ج', count: 2, score: 5 },
10
- { character: 'چ', count: 1, score: 6 },
11
- { character: 'ح', count: 1, score: 6 },
12
- { character: 'خ', count: 2, score: 5 },
13
- { character: 'د', count: 6, score: 1 },
14
- { character: 'ذ', count: 1, score: 10 },
15
- { character: 'ر', count: 7, score: 1 },
16
- { character: 'ز', count: 3, score: 4 },
17
- { character: 'ژ', count: 1, score: 10 },
18
- { character: 'س', count: 3, score: 2 },
19
- { character: 'ش', count: 3, score: 3 },
20
- { character: 'ص', count: 1, score: 6 },
21
- { character: 'ض', count: 1, score: 8 },
22
- { character: 'ط', count: 1, score: 8 },
23
- { character: 'ظ', count: 1, score: 10 },
24
- { character: 'ع', count: 2, score: 5 },
25
- { character: 'غ', count: 1, score: 8 },
26
- { character: 'ف', count: 2, score: 4 },
27
- { character: 'ق', count: 2, score: 5 },
28
- { character: 'ک', count: 3, score: 3 },
29
- { character: 'گ', count: 2, score: 4 },
30
- { character: 'ل', count: 3, score: 2 },
31
- { character: 'م', count: 5, score: 1 },
32
- { character: 'ن', count: 6, score: 1 },
33
- { character: 'و', count: 5, score: 1 },
34
- { character: 'ه', count: 5, score: 1 },
35
- { character: 'ی', count: 8, score: 1 },
36
- ];
37
- exports.default = tilesFa;
@@ -1,6 +0,0 @@
1
- declare const tilesFr: {
2
- character: string;
3
- count: number;
4
- score: number;
5
- }[];
6
- export default tilesFr;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tilesFr = [
4
- { character: 'a', count: 9, score: 1 },
5
- { character: 'b', count: 2, score: 3 },
6
- { character: 'c', count: 2, score: 3 },
7
- { character: 'd', count: 3, score: 2 },
8
- { character: 'e', count: 15, score: 1 },
9
- { character: 'f', count: 2, score: 4 },
10
- { character: 'g', count: 2, score: 2 },
11
- { character: 'h', count: 2, score: 4 },
12
- { character: 'i', count: 8, score: 1 },
13
- { character: 'j', count: 1, score: 8 },
14
- { character: 'k', count: 1, score: 10 },
15
- { character: 'l', count: 5, score: 1 },
16
- { character: 'm', count: 3, score: 2 },
17
- { character: 'n', count: 6, score: 1 },
18
- { character: 'o', count: 6, score: 1 },
19
- { character: 'p', count: 2, score: 3 },
20
- { character: 'q', count: 1, score: 8 },
21
- { character: 'r', count: 6, score: 1 },
22
- { character: 's', count: 6, score: 1 },
23
- { character: 't', count: 6, score: 1 },
24
- { character: 'u', count: 6, score: 1 },
25
- { character: 'v', count: 2, score: 4 },
26
- { character: 'w', count: 1, score: 10 },
27
- { character: 'x', count: 1, score: 10 },
28
- { character: 'y', count: 1, score: 10 },
29
- { character: 'z', count: 1, score: 10 },
30
- ];
31
- exports.default = tilesFr;
@@ -1,6 +0,0 @@
1
- declare const tilesPl: {
2
- character: string;
3
- count: number;
4
- score: number;
5
- }[];
6
- export default tilesPl;
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tilesPl = [
4
- { character: 'a', count: 9, score: 1 },
5
- { character: 'ą', count: 1, score: 5 },
6
- { character: 'b', count: 2, score: 3 },
7
- { character: 'c', count: 3, score: 2 },
8
- { character: 'ć', count: 1, score: 6 },
9
- { character: 'd', count: 3, score: 2 },
10
- { character: 'e', count: 7, score: 1 },
11
- { character: 'ę', count: 1, score: 5 },
12
- { character: 'f', count: 1, score: 5 },
13
- { character: 'g', count: 2, score: 3 },
14
- { character: 'h', count: 2, score: 3 },
15
- { character: 'i', count: 8, score: 1 },
16
- { character: 'j', count: 2, score: 3 },
17
- { character: 'k', count: 3, score: 2 },
18
- { character: 'l', count: 3, score: 2 },
19
- { character: 'ł', count: 2, score: 3 },
20
- { character: 'm', count: 3, score: 2 },
21
- { character: 'n', count: 5, score: 1 },
22
- { character: 'ń', count: 1, score: 7 },
23
- { character: 'o', count: 6, score: 1 },
24
- { character: 'ó', count: 1, score: 5 },
25
- { character: 'p', count: 3, score: 2 },
26
- { character: 'r', count: 4, score: 1 },
27
- { character: 's', count: 4, score: 1 },
28
- { character: 'ś', count: 1, score: 5 },
29
- { character: 't', count: 3, score: 2 },
30
- { character: 'u', count: 2, score: 3 },
31
- { character: 'w', count: 4, score: 1 },
32
- { character: 'y', count: 4, score: 2 },
33
- { character: 'z', count: 5, score: 1 },
34
- { character: 'ź', count: 1, score: 9 },
35
- { character: 'ż', count: 1, score: 5 },
36
- ];
37
- exports.default = tilesPl;
@@ -1,9 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import getConfig from './getConfig';
4
-
5
- const getLocaleConfig = (configId: string, locale: Locale): Config => {
6
- return getConfig(configId)[locale];
7
- };
8
-
9
- export default getLocaleConfig;
@@ -1,10 +0,0 @@
1
- import literaki from './literaki';
2
- import scrabble from './scrabble';
3
-
4
- const configs = [literaki, scrabble];
5
-
6
- const isConfigId = (configId: unknown): boolean => {
7
- return configs.some(({ id }) => id === configId);
8
- };
9
-
10
- export default isConfigId;
@@ -1,99 +0,0 @@
1
- import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
2
-
3
- const bonuses = [
4
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 0, y: 0 },
5
- { multiplier: 3, type: BONUS_WORD, x: 2, y: 0 },
6
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 5, y: 0 },
7
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 7, y: 0 },
8
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 9, y: 0 },
9
- { multiplier: 3, type: BONUS_WORD, x: 12, y: 0 },
10
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 14, y: 0 },
11
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 4, y: 1 },
12
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 6, y: 1 },
13
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 8, y: 1 },
14
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 10, y: 1 },
15
- { multiplier: 3, type: BONUS_WORD, x: 0, y: 2 },
16
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 3, y: 2 },
17
- { multiplier: 2, type: BONUS_WORD, x: 5, y: 2 },
18
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 7, y: 2 },
19
- { multiplier: 2, type: BONUS_WORD, x: 9, y: 2 },
20
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 11, y: 2 },
21
- { multiplier: 3, type: BONUS_WORD, x: 14, y: 2 },
22
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 2, y: 3 },
23
- { multiplier: 2, type: BONUS_WORD, x: 4, y: 3 },
24
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 6, y: 3 },
25
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 8, y: 3 },
26
- { multiplier: 2, type: BONUS_WORD, x: 10, y: 3 },
27
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 12, y: 3 },
28
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 1, y: 4 },
29
- { multiplier: 2, type: BONUS_WORD, x: 3, y: 4 },
30
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 5, y: 4 },
31
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 9, y: 4 },
32
- { multiplier: 2, type: BONUS_WORD, x: 11, y: 4 },
33
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 13, y: 4 },
34
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 0, y: 5 },
35
- { multiplier: 2, type: BONUS_WORD, x: 2, y: 5 },
36
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 4, y: 5 },
37
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 7, y: 5 },
38
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 10, y: 5 },
39
- { multiplier: 2, type: BONUS_WORD, x: 12, y: 5 },
40
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 14, y: 5 },
41
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 1, y: 6 },
42
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 3, y: 6 },
43
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 6, y: 6 },
44
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 8, y: 6 },
45
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 11, y: 6 },
46
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 13, y: 6 },
47
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 0, y: 7 },
48
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 2, y: 7 },
49
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 5, y: 7 },
50
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 7, y: 7 },
51
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 9, y: 7 },
52
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 12, y: 7 },
53
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 14, y: 7 },
54
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 1, y: 8 },
55
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 3, y: 8 },
56
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 6, y: 8 },
57
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 8, y: 8 },
58
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 11, y: 8 },
59
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 13, y: 8 },
60
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 0, y: 9 },
61
- { multiplier: 2, type: BONUS_WORD, x: 2, y: 9 },
62
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 4, y: 9 },
63
- { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 7, y: 9 },
64
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 10, y: 9 },
65
- { multiplier: 2, type: BONUS_WORD, x: 12, y: 9 },
66
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 14, y: 9 },
67
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 1, y: 10 },
68
- { multiplier: 2, type: BONUS_WORD, x: 3, y: 10 },
69
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 5, y: 10 },
70
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 9, y: 10 },
71
- { multiplier: 2, type: BONUS_WORD, x: 11, y: 10 },
72
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 13, y: 10 },
73
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 2, y: 11 },
74
- { multiplier: 2, type: BONUS_WORD, x: 4, y: 11 },
75
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 6, y: 11 },
76
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 8, y: 11 },
77
- { multiplier: 2, type: BONUS_WORD, x: 10, y: 11 },
78
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 12, y: 11 },
79
- { multiplier: 3, type: BONUS_WORD, x: 0, y: 12 },
80
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 3, y: 12 },
81
- { multiplier: 2, type: BONUS_WORD, x: 5, y: 12 },
82
- { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 7, y: 12 },
83
- { multiplier: 2, type: BONUS_WORD, x: 9, y: 12 },
84
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 11, y: 12 },
85
- { multiplier: 3, type: BONUS_WORD, x: 14, y: 12 },
86
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 4, y: 13 },
87
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 6, y: 13 },
88
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 8, y: 13 },
89
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 10, y: 13 },
90
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 0, y: 14 },
91
- { multiplier: 3, type: BONUS_WORD, x: 2, y: 14 },
92
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 5, y: 14 },
93
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 7, y: 14 },
94
- { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 9, y: 14 },
95
- { multiplier: 3, type: BONUS_WORD, x: 12, y: 14 },
96
- { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 14, y: 14 },
97
- ];
98
-
99
- export default bonuses;
@@ -1 +0,0 @@
1
- export { default } from './literaki';
@@ -1,30 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import bonuses from './bonuses';
4
- import { tilesDe, tilesEn, tilesEs, tilesFa, tilesFr, tilesPl } from './tiles';
5
-
6
- const base = {
7
- allTilesBonusScore: 50,
8
- blankScore: 0,
9
- blanksCount: 2,
10
- boardHeight: 15,
11
- boardWidth: 15,
12
- bonuses,
13
- id: 'literaki',
14
- maximumCharactersCount: 7,
15
- name: 'Literaki',
16
- };
17
-
18
- const literaki = {
19
- id: base.id,
20
- name: base.name,
21
- [Locale.DE_DE]: Config.fromJson({ ...base, locale: Locale.EN_GB, tiles: tilesDe }),
22
- [Locale.EN_GB]: Config.fromJson({ ...base, locale: Locale.DE_DE, tiles: tilesEn }),
23
- [Locale.EN_US]: Config.fromJson({ ...base, locale: Locale.EN_US, tiles: tilesEn }),
24
- [Locale.ES_ES]: Config.fromJson({ ...base, locale: Locale.ES_ES, tiles: tilesEs }),
25
- [Locale.FA_IR]: Config.fromJson({ ...base, locale: Locale.FA_IR, tiles: tilesFa }),
26
- [Locale.FR_FR]: Config.fromJson({ ...base, locale: Locale.FR_FR, tiles: tilesFr }),
27
- [Locale.PL_PL]: Config.fromJson({ ...base, locale: Locale.PL_PL, tiles: tilesPl }),
28
- };
29
-
30
- export default literaki;
@@ -1,6 +0,0 @@
1
- export { default as tilesEn } from './tilesEn';
2
- export { default as tilesEs } from './tilesEs';
3
- export { default as tilesFa } from './tilesFa';
4
- export { default as tilesFr } from './tilesFr';
5
- export { default as tilesPl } from './tilesPl';
6
- export { default as tilesDe } from './tilesDe';
@@ -1,33 +0,0 @@
1
- const tilesDe = [
2
- { character: 'a', count: 5, score: 1 },
3
- { character: 'ä', count: 1, score: 6 },
4
- { character: 'b', count: 2, score: 3 },
5
- { character: 'c', count: 2, score: 4 },
6
- { character: 'd', count: 4, score: 1 },
7
- { character: 'e', count: 15, score: 1 },
8
- { character: 'f', count: 2, score: 4 },
9
- { character: 'g', count: 3, score: 2 },
10
- { character: 'h', count: 4, score: 2 },
11
- { character: 'i', count: 6, score: 1 },
12
- { character: 'j', count: 1, score: 6 },
13
- { character: 'k', count: 2, score: 4 },
14
- { character: 'l', count: 3, score: 2 },
15
- { character: 'm', count: 4, score: 3 },
16
- { character: 'n', count: 9, score: 1 },
17
- { character: 'o', count: 3, score: 2 },
18
- { character: 'ö', count: 1, score: 8 },
19
- { character: 'p', count: 1, score: 4 },
20
- { character: 'q', count: 1, score: 10 },
21
- { character: 'r', count: 6, score: 1 },
22
- { character: 's', count: 7, score: 1 },
23
- { character: 't', count: 6, score: 1 },
24
- { character: 'u', count: 6, score: 1 },
25
- { character: 'ü', count: 1, score: 6 },
26
- { character: 'v', count: 1, score: 6 },
27
- { character: 'w', count: 1, score: 3 },
28
- { character: 'x', count: 1, score: 8 },
29
- { character: 'y', count: 1, score: 10 },
30
- { character: 'z', count: 1, score: 3 },
31
- ];
32
-
33
- export default tilesDe;
@@ -1,30 +0,0 @@
1
- const tilesEn = [
2
- { character: 'a', count: 9, score: 1 },
3
- { character: 'b', count: 2, score: 3 },
4
- { character: 'c', count: 2, score: 3 },
5
- { character: 'd', count: 4, score: 2 },
6
- { character: 'e', count: 12, score: 1 },
7
- { character: 'f', count: 2, score: 4 },
8
- { character: 'g', count: 3, score: 2 },
9
- { character: 'h', count: 2, score: 4 },
10
- { character: 'i', count: 9, score: 1 },
11
- { character: 'j', count: 1, score: 8 },
12
- { character: 'k', count: 1, score: 5 },
13
- { character: 'l', count: 4, score: 1 },
14
- { character: 'm', count: 2, score: 3 },
15
- { character: 'n', count: 6, score: 1 },
16
- { character: 'o', count: 8, score: 1 },
17
- { character: 'p', count: 2, score: 3 },
18
- { character: 'q', count: 1, score: 10 },
19
- { character: 'r', count: 6, score: 1 },
20
- { character: 's', count: 4, score: 1 },
21
- { character: 't', count: 6, score: 1 },
22
- { character: 'u', count: 4, score: 1 },
23
- { character: 'v', count: 2, score: 4 },
24
- { character: 'w', count: 2, score: 4 },
25
- { character: 'x', count: 1, score: 8 },
26
- { character: 'y', count: 2, score: 4 },
27
- { character: 'z', count: 1, score: 10 },
28
- ];
29
-
30
- export default tilesEn;
@@ -1,32 +0,0 @@
1
- const tilesEs = [
2
- { character: 'a', count: 12, score: 1 },
3
- { character: 'b', count: 2, score: 3 },
4
- { character: 'c', count: 4, score: 3 },
5
- { character: 'ch', count: 1, score: 5 },
6
- { character: 'd', count: 5, score: 2 },
7
- { character: 'e', count: 12, score: 1 },
8
- { character: 'f', count: 1, score: 4 },
9
- { character: 'g', count: 2, score: 2 },
10
- { character: 'h', count: 2, score: 4 },
11
- { character: 'i', count: 6, score: 1 },
12
- { character: 'j', count: 1, score: 8 },
13
- { character: 'll', count: 1, score: 8 },
14
- { character: 'l', count: 4, score: 1 },
15
- { character: 'm', count: 2, score: 3 },
16
- { character: 'n', count: 5, score: 1 },
17
- { character: 'ñ', count: 1, score: 8 },
18
- { character: 'o', count: 9, score: 1 },
19
- { character: 'p', count: 2, score: 3 },
20
- { character: 'q', count: 1, score: 5 },
21
- { character: 'r', count: 5, score: 1 },
22
- { character: 'rr', count: 1, score: 8 },
23
- { character: 's', count: 6, score: 1 },
24
- { character: 't', count: 4, score: 1 },
25
- { character: 'u', count: 5, score: 1 },
26
- { character: 'v', count: 1, score: 4 },
27
- { character: 'x', count: 1, score: 8 },
28
- { character: 'y', count: 1, score: 4 },
29
- { character: 'z', count: 1, score: 10 },
30
- ];
31
-
32
- export default tilesEs;
@@ -1,36 +0,0 @@
1
- const tilesFa = [
2
- { character: 'ا', count: 12, score: 1 },
3
- { character: 'ب', count: 4, score: 1 },
4
- { character: 'پ', count: 1, score: 6 },
5
- { character: 'ت', count: 4, score: 1 },
6
- { character: 'ث', count: 1, score: 10 },
7
- { character: 'ج', count: 2, score: 5 },
8
- { character: 'چ', count: 1, score: 6 },
9
- { character: 'ح', count: 1, score: 6 },
10
- { character: 'خ', count: 2, score: 5 },
11
- { character: 'د', count: 6, score: 1 },
12
- { character: 'ذ', count: 1, score: 10 },
13
- { character: 'ر', count: 7, score: 1 },
14
- { character: 'ز', count: 3, score: 4 },
15
- { character: 'ژ', count: 1, score: 10 },
16
- { character: 'س', count: 3, score: 2 },
17
- { character: 'ش', count: 3, score: 3 },
18
- { character: 'ص', count: 1, score: 6 },
19
- { character: 'ض', count: 1, score: 8 },
20
- { character: 'ط', count: 1, score: 8 },
21
- { character: 'ظ', count: 1, score: 10 },
22
- { character: 'ع', count: 2, score: 5 },
23
- { character: 'غ', count: 1, score: 8 },
24
- { character: 'ف', count: 2, score: 4 },
25
- { character: 'ق', count: 2, score: 5 },
26
- { character: 'ک', count: 3, score: 3 },
27
- { character: 'گ', count: 2, score: 4 },
28
- { character: 'ل', count: 3, score: 2 },
29
- { character: 'م', count: 5, score: 1 },
30
- { character: 'ن', count: 6, score: 1 },
31
- { character: 'و', count: 5, score: 1 },
32
- { character: 'ه', count: 5, score: 1 },
33
- { character: 'ی', count: 8, score: 1 },
34
- ];
35
-
36
- export default tilesFa;
@@ -1,30 +0,0 @@
1
- const tilesFr = [
2
- { character: 'a', count: 9, score: 1 },
3
- { character: 'b', count: 2, score: 3 },
4
- { character: 'c', count: 2, score: 3 },
5
- { character: 'd', count: 3, score: 2 },
6
- { character: 'e', count: 15, score: 1 },
7
- { character: 'f', count: 2, score: 1 },
8
- { character: 'g', count: 2, score: 2 },
9
- { character: 'h', count: 2, score: 4 },
10
- { character: 'i', count: 8, score: 1 },
11
- { character: 'j', count: 1, score: 8 },
12
- { character: 'k', count: 1, score: 10 },
13
- { character: 'l', count: 5, score: 1 },
14
- { character: 'm', count: 3, score: 2 },
15
- { character: 'n', count: 6, score: 1 },
16
- { character: 'o', count: 6, score: 1 },
17
- { character: 'p', count: 2, score: 3 },
18
- { character: 'q', count: 1, score: 8 },
19
- { character: 'r', count: 6, score: 1 },
20
- { character: 's', count: 6, score: 1 },
21
- { character: 't', count: 6, score: 1 },
22
- { character: 'u', count: 6, score: 1 },
23
- { character: 'v', count: 2, score: 4 },
24
- { character: 'w', count: 1, score: 10 },
25
- { character: 'x', count: 1, score: 10 },
26
- { character: 'y', count: 1, score: 10 },
27
- { character: 'z', count: 1, score: 10 },
28
- ];
29
-
30
- export default tilesFr;
@@ -1,36 +0,0 @@
1
- const tilesPl = [
2
- { character: 'a', count: 9, score: 1 },
3
- { character: 'ą', count: 1, score: 5 },
4
- { character: 'b', count: 2, score: 3 },
5
- { character: 'c', count: 3, score: 2 },
6
- { character: 'ć', count: 1, score: 5 },
7
- { character: 'd', count: 3, score: 2 },
8
- { character: 'e', count: 7, score: 1 },
9
- { character: 'ę', count: 1, score: 5 },
10
- { character: 'f', count: 1, score: 5 },
11
- { character: 'g', count: 2, score: 3 },
12
- { character: 'h', count: 2, score: 3 },
13
- { character: 'i', count: 8, score: 1 },
14
- { character: 'j', count: 2, score: 3 },
15
- { character: 'k', count: 3, score: 2 },
16
- { character: 'l', count: 3, score: 2 },
17
- { character: 'ł', count: 2, score: 3 },
18
- { character: 'm', count: 3, score: 2 },
19
- { character: 'n', count: 5, score: 1 },
20
- { character: 'ń', count: 1, score: 5 },
21
- { character: 'o', count: 6, score: 1 },
22
- { character: 'ó', count: 1, score: 5 },
23
- { character: 'p', count: 3, score: 2 },
24
- { character: 'r', count: 4, score: 1 },
25
- { character: 's', count: 4, score: 1 },
26
- { character: 'ś', count: 1, score: 5 },
27
- { character: 't', count: 3, score: 2 },
28
- { character: 'u', count: 2, score: 3 },
29
- { character: 'w', count: 4, score: 1 },
30
- { character: 'y', count: 4, score: 2 },
31
- { character: 'z', count: 5, score: 1 },
32
- { character: 'ź', count: 1, score: 5 },
33
- { character: 'ż', count: 1, score: 5 },
34
- ];
35
-
36
- export default tilesPl;
@@ -1,67 +0,0 @@
1
- import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
2
-
3
- const bonuses = [
4
- { multiplier: 3, type: BONUS_WORD, x: 0, y: 0 },
5
- { multiplier: 2, type: BONUS_CHARACTER, x: 3, y: 0 },
6
- { multiplier: 3, type: BONUS_WORD, x: 7, y: 0 },
7
- { multiplier: 2, type: BONUS_CHARACTER, x: 11, y: 0 },
8
- { multiplier: 3, type: BONUS_WORD, x: 14, y: 0 },
9
- { multiplier: 2, type: BONUS_WORD, x: 1, y: 1 },
10
- { multiplier: 3, type: BONUS_CHARACTER, x: 5, y: 1 },
11
- { multiplier: 3, type: BONUS_CHARACTER, x: 9, y: 1 },
12
- { multiplier: 2, type: BONUS_WORD, x: 13, y: 1 },
13
- { multiplier: 2, type: BONUS_WORD, x: 2, y: 2 },
14
- { multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 2 },
15
- { multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 2 },
16
- { multiplier: 2, type: BONUS_WORD, x: 12, y: 2 },
17
- { multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 3 },
18
- { multiplier: 2, type: BONUS_WORD, x: 3, y: 3 },
19
- { multiplier: 2, type: BONUS_CHARACTER, x: 7, y: 3 },
20
- { multiplier: 2, type: BONUS_WORD, x: 11, y: 3 },
21
- { multiplier: 2, type: BONUS_CHARACTER, x: 14, y: 3 },
22
- { multiplier: 2, type: BONUS_WORD, x: 4, y: 4 },
23
- { multiplier: 2, type: BONUS_WORD, x: 10, y: 4 },
24
- { multiplier: 3, type: BONUS_CHARACTER, x: 1, y: 5 },
25
- { multiplier: 3, type: BONUS_CHARACTER, x: 5, y: 5 },
26
- { multiplier: 3, type: BONUS_CHARACTER, x: 9, y: 5 },
27
- { multiplier: 3, type: BONUS_CHARACTER, x: 13, y: 5 },
28
- { multiplier: 2, type: BONUS_CHARACTER, x: 2, y: 6 },
29
- { multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 6 },
30
- { multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 6 },
31
- { multiplier: 2, type: BONUS_CHARACTER, x: 12, y: 6 },
32
- { multiplier: 3, type: BONUS_WORD, x: 0, y: 7 },
33
- { multiplier: 2, type: BONUS_CHARACTER, x: 3, y: 7 },
34
- { multiplier: 2, type: BONUS_WORD, x: 7, y: 7 },
35
- { multiplier: 2, type: BONUS_CHARACTER, x: 11, y: 7 },
36
- { multiplier: 3, type: BONUS_WORD, x: 14, y: 7 },
37
- { multiplier: 2, type: BONUS_CHARACTER, x: 2, y: 8 },
38
- { multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 8 },
39
- { multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 8 },
40
- { multiplier: 2, type: BONUS_CHARACTER, x: 12, y: 8 },
41
- { multiplier: 3, type: BONUS_CHARACTER, x: 1, y: 9 },
42
- { multiplier: 3, type: BONUS_CHARACTER, x: 5, y: 9 },
43
- { multiplier: 3, type: BONUS_CHARACTER, x: 9, y: 9 },
44
- { multiplier: 3, type: BONUS_CHARACTER, x: 13, y: 9 },
45
- { multiplier: 2, type: BONUS_WORD, x: 4, y: 10 },
46
- { multiplier: 2, type: BONUS_WORD, x: 10, y: 10 },
47
- { multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 11 },
48
- { multiplier: 2, type: BONUS_WORD, x: 3, y: 11 },
49
- { multiplier: 2, type: BONUS_CHARACTER, x: 7, y: 11 },
50
- { multiplier: 2, type: BONUS_WORD, x: 11, y: 11 },
51
- { multiplier: 2, type: BONUS_CHARACTER, x: 14, y: 11 },
52
- { multiplier: 2, type: BONUS_WORD, x: 2, y: 12 },
53
- { multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 12 },
54
- { multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 12 },
55
- { multiplier: 2, type: BONUS_WORD, x: 12, y: 12 },
56
- { multiplier: 2, type: BONUS_WORD, x: 1, y: 13 },
57
- { multiplier: 3, type: BONUS_CHARACTER, x: 5, y: 13 },
58
- { multiplier: 3, type: BONUS_CHARACTER, x: 9, y: 13 },
59
- { multiplier: 2, type: BONUS_WORD, x: 13, y: 13 },
60
- { multiplier: 3, type: BONUS_WORD, x: 0, y: 14 },
61
- { multiplier: 2, type: BONUS_CHARACTER, x: 3, y: 14 },
62
- { multiplier: 3, type: BONUS_WORD, x: 7, y: 14 },
63
- { multiplier: 2, type: BONUS_CHARACTER, x: 11, y: 14 },
64
- { multiplier: 3, type: BONUS_WORD, x: 14, y: 14 },
65
- ];
66
-
67
- export default bonuses;
@@ -1 +0,0 @@
1
- export { default } from './scrabble';
@@ -1,30 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import bonuses from './bonuses';
4
- import { tilesDe, tilesEn, tilesEs, tilesFa, tilesFr, tilesPl } from './tiles';
5
-
6
- const base = {
7
- allTilesBonusScore: 50,
8
- blankScore: 0,
9
- blanksCount: 2,
10
- boardHeight: 15,
11
- boardWidth: 15,
12
- bonuses,
13
- id: 'scrabble',
14
- maximumCharactersCount: 7,
15
- name: 'Scrabble',
16
- };
17
-
18
- const scrabble = {
19
- id: base.id,
20
- name: base.name,
21
- [Locale.EN_GB]: Config.fromJson({ ...base, locale: Locale.EN_GB, tiles: tilesEn }),
22
- [Locale.DE_DE]: Config.fromJson({ ...base, locale: Locale.DE_DE, tiles: tilesDe }),
23
- [Locale.EN_US]: Config.fromJson({ ...base, locale: Locale.EN_US, tiles: tilesEn }),
24
- [Locale.ES_ES]: Config.fromJson({ ...base, locale: Locale.ES_ES, tiles: tilesEs }),
25
- [Locale.FA_IR]: Config.fromJson({ ...base, locale: Locale.FA_IR, tiles: tilesFa }),
26
- [Locale.FR_FR]: Config.fromJson({ ...base, locale: Locale.FR_FR, tiles: tilesFr }),
27
- [Locale.PL_PL]: Config.fromJson({ ...base, locale: Locale.PL_PL, tiles: tilesPl }),
28
- };
29
-
30
- export default scrabble;
@@ -1,6 +0,0 @@
1
- export { default as tilesEn } from './tilesEn';
2
- export { default as tilesEs } from './tilesEs';
3
- export { default as tilesFa } from './tilesFa';
4
- export { default as tilesFr } from './tilesFr';
5
- export { default as tilesPl } from './tilesPl';
6
- export { default as tilesDe } from './tilesDe';
@@ -1,33 +0,0 @@
1
- const tilesDe = [
2
- { character: 'a', count: 5, score: 1 },
3
- { character: 'ä', count: 1, score: 6 },
4
- { character: 'b', count: 2, score: 3 },
5
- { character: 'c', count: 2, score: 4 },
6
- { character: 'd', count: 4, score: 1 },
7
- { character: 'e', count: 15, score: 1 },
8
- { character: 'f', count: 2, score: 4 },
9
- { character: 'g', count: 3, score: 2 },
10
- { character: 'h', count: 4, score: 2 },
11
- { character: 'i', count: 6, score: 1 },
12
- { character: 'j', count: 1, score: 6 },
13
- { character: 'k', count: 2, score: 4 },
14
- { character: 'l', count: 3, score: 2 },
15
- { character: 'm', count: 4, score: 3 },
16
- { character: 'n', count: 9, score: 1 },
17
- { character: 'o', count: 3, score: 2 },
18
- { character: 'ö', count: 1, score: 8 },
19
- { character: 'p', count: 1, score: 4 },
20
- { character: 'q', count: 1, score: 10 },
21
- { character: 'r', count: 6, score: 1 },
22
- { character: 's', count: 7, score: 1 },
23
- { character: 't', count: 6, score: 1 },
24
- { character: 'u', count: 6, score: 1 },
25
- { character: 'ü', count: 1, score: 6 },
26
- { character: 'v', count: 1, score: 6 },
27
- { character: 'w', count: 1, score: 3 },
28
- { character: 'x', count: 1, score: 8 },
29
- { character: 'y', count: 1, score: 10 },
30
- { character: 'z', count: 1, score: 3 },
31
- ];
32
-
33
- export default tilesDe;