@scrabble-solver/configs 2.13.4 → 2.13.5-alpha.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.
Files changed (44) hide show
  1. package/build/getConfig.d.ts +1 -2
  2. package/build/getConfig.js +4 -3
  3. package/build/hasConfig.d.ts +1 -2
  4. package/build/hasConfig.js +4 -3
  5. package/build/index.d.ts +4 -7
  6. package/build/index.js +5 -10
  7. package/build/languages/english.d.ts +7 -0
  8. package/build/languages/english.js +199 -0
  9. package/build/languages/french.d.ts +2 -0
  10. package/build/languages/french.js +37 -0
  11. package/build/languages/german.d.ts +2 -0
  12. package/build/languages/german.js +40 -0
  13. package/build/languages/index.d.ts +7 -0
  14. package/build/languages/index.js +23 -0
  15. package/build/languages/persian.d.ts +2 -0
  16. package/build/languages/persian.js +43 -0
  17. package/build/languages/polish.d.ts +3 -0
  18. package/build/languages/polish.js +81 -0
  19. package/build/languages/romanian.d.ts +2 -0
  20. package/build/languages/romanian.js +36 -0
  21. package/build/languages/spanish.d.ts +2 -0
  22. package/build/languages/spanish.js +39 -0
  23. package/package.json +4 -4
  24. package/src/games/superScrabble.ts +2 -2
  25. package/src/getConfig.ts +3 -5
  26. package/src/hasConfig.ts +3 -5
  27. package/src/index.ts +4 -6
  28. package/src/languages/english.ts +203 -0
  29. package/src/languages/french.ts +36 -0
  30. package/src/languages/german.ts +39 -0
  31. package/src/languages/index.ts +7 -0
  32. package/src/languages/persian.ts +42 -0
  33. package/src/languages/polish.ts +81 -0
  34. package/src/languages/romanian.ts +35 -0
  35. package/src/languages/spanish.ts +38 -0
  36. package/src/locales/deDe.ts +0 -43
  37. package/src/locales/enGb.ts +0 -105
  38. package/src/locales/enUs.ts +0 -105
  39. package/src/locales/esEs.ts +0 -42
  40. package/src/locales/faIr.ts +0 -46
  41. package/src/locales/frFr.ts +0 -40
  42. package/src/locales/index.ts +0 -8
  43. package/src/locales/plPl.ts +0 -84
  44. package/src/locales/roRo.ts +0 -39
@@ -1,3 +1,2 @@
1
1
  import { Config, Game, Locale } from '@scrabble-solver/types';
2
- declare const getConfig: (game: Game, locale: Locale) => Config;
3
- export default getConfig;
2
+ export declare const getConfig: (game: Game, locale: Locale) => Config;
@@ -23,13 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const locales = __importStar(require("./locales"));
26
+ exports.getConfig = void 0;
27
+ const languages = __importStar(require("./languages"));
27
28
  const getConfig = (game, locale) => {
28
- const configs = Object.values(locales).flat();
29
+ const configs = Object.values(languages);
29
30
  const localeConfig = configs.find((config) => config.game === game && config.locale === locale);
30
31
  if (typeof localeConfig === 'undefined') {
31
32
  throw new Error(`No game "${game}" in "${locale}"`);
32
33
  }
33
34
  return localeConfig;
34
35
  };
35
- exports.default = getConfig;
36
+ exports.getConfig = getConfig;
@@ -1,3 +1,2 @@
1
1
  import { Game, Locale } from '@scrabble-solver/types';
2
- declare const hasConfig: (game: Game, locale: Locale) => boolean;
3
- export default hasConfig;
2
+ export declare const hasConfig: (game: Game, locale: Locale) => boolean;
@@ -23,9 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const locales = __importStar(require("./locales"));
26
+ exports.hasConfig = void 0;
27
+ const languages = __importStar(require("./languages"));
27
28
  const hasConfig = (game, locale) => {
28
- const configs = Object.values(locales).flat();
29
+ const configs = Object.values(languages);
29
30
  return configs.some((config) => config.game === game && config.locale === locale);
30
31
  };
31
- exports.default = hasConfig;
32
+ exports.hasConfig = hasConfig;
package/build/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import * as games from './games';
2
- import * as locales from './locales';
3
- declare const localesMap: {
4
- [k: string]: import("@scrabble-solver/types/build/Config").default[];
5
- };
6
- export { default as getConfig } from './getConfig';
7
- export { default as hasConfig } from './hasConfig';
8
- export { games, locales, localesMap };
2
+ import * as languages from './languages';
3
+ export { getConfig } from './getConfig';
4
+ export { hasConfig } from './hasConfig';
5
+ export { games, languages };
package/build/index.js CHANGED
@@ -22,18 +22,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.localesMap = exports.locales = exports.games = exports.hasConfig = exports.getConfig = void 0;
26
+ exports.languages = exports.games = exports.hasConfig = exports.getConfig = void 0;
30
27
  const games = __importStar(require("./games"));
31
28
  exports.games = games;
32
- const locales = __importStar(require("./locales"));
33
- exports.locales = locales;
34
- const localesMap = Object.fromEntries(Object.values(locales).map((configs) => [configs[0].locale, configs]));
35
- exports.localesMap = localesMap;
29
+ const languages = __importStar(require("./languages"));
30
+ exports.languages = languages;
36
31
  var getConfig_1 = require("./getConfig");
37
- Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return __importDefault(getConfig_1).default; } });
32
+ Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return getConfig_1.getConfig; } });
38
33
  var hasConfig_1 = require("./hasConfig");
39
- Object.defineProperty(exports, "hasConfig", { enumerable: true, get: function () { return __importDefault(hasConfig_1).default; } });
34
+ Object.defineProperty(exports, "hasConfig", { enumerable: true, get: function () { return hasConfig_1.hasConfig; } });
@@ -0,0 +1,7 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const englishGbScrabble: Config;
3
+ export declare const englishGbSuperScrabble: Config;
4
+ export declare const englishGbLiteraki: Config;
5
+ export declare const englishUsScrabble: Config;
6
+ export declare const englishUsSuperScrabble: Config;
7
+ export declare const englishUsLiteraki: Config;
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.englishUsLiteraki = exports.englishUsSuperScrabble = exports.englishUsScrabble = exports.englishGbLiteraki = exports.englishGbSuperScrabble = exports.englishGbScrabble = void 0;
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const games_1 = require("../games");
6
+ exports.englishGbScrabble = new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.Locale.EN_GB,
9
+ tiles: [
10
+ { character: 'a', count: 9, score: 1 },
11
+ { character: 'b', count: 2, score: 3 },
12
+ { character: 'c', count: 2, score: 3 },
13
+ { character: 'd', count: 4, score: 2 },
14
+ { character: 'e', count: 12, score: 1 },
15
+ { character: 'f', count: 2, score: 4 },
16
+ { character: 'g', count: 3, score: 2 },
17
+ { character: 'h', count: 2, score: 4 },
18
+ { character: 'i', count: 9, score: 1 },
19
+ { character: 'j', count: 1, score: 8 },
20
+ { character: 'k', count: 1, score: 5 },
21
+ { character: 'l', count: 4, score: 1 },
22
+ { character: 'm', count: 2, score: 3 },
23
+ { character: 'n', count: 6, score: 1 },
24
+ { character: 'o', count: 8, score: 1 },
25
+ { character: 'p', count: 2, score: 3 },
26
+ { character: 'q', count: 1, score: 10 },
27
+ { character: 'r', count: 6, score: 1 },
28
+ { character: 's', count: 4, score: 1 },
29
+ { character: 't', count: 6, score: 1 },
30
+ { character: 'u', count: 4, score: 1 },
31
+ { character: 'v', count: 2, score: 4 },
32
+ { character: 'w', count: 2, score: 4 },
33
+ { character: 'x', count: 1, score: 8 },
34
+ { character: 'y', count: 2, score: 4 },
35
+ { character: 'z', count: 1, score: 10 },
36
+ ],
37
+ });
38
+ exports.englishGbSuperScrabble = new types_1.Config({
39
+ ...games_1.superScrabble,
40
+ locale: types_1.Locale.EN_GB,
41
+ tiles: [
42
+ { character: 'a', count: 16, score: 1 },
43
+ { character: 'b', count: 4, score: 3 },
44
+ { character: 'c', count: 6, score: 3 },
45
+ { character: 'd', count: 8, score: 2 },
46
+ { character: 'e', count: 24, score: 1 },
47
+ { character: 'f', count: 4, score: 4 },
48
+ { character: 'g', count: 5, score: 2 },
49
+ { character: 'h', count: 5, score: 4 },
50
+ { character: 'i', count: 13, score: 1 },
51
+ { character: 'j', count: 2, score: 8 },
52
+ { character: 'k', count: 2, score: 5 },
53
+ { character: 'l', count: 7, score: 1 },
54
+ { character: 'm', count: 6, score: 3 },
55
+ { character: 'n', count: 13, score: 1 },
56
+ { character: 'o', count: 15, score: 1 },
57
+ { character: 'p', count: 4, score: 3 },
58
+ { character: 'q', count: 2, score: 10 },
59
+ { character: 'r', count: 13, score: 1 },
60
+ { character: 's', count: 10, score: 1 },
61
+ { character: 't', count: 15, score: 1 },
62
+ { character: 'u', count: 7, score: 1 },
63
+ { character: 'v', count: 3, score: 4 },
64
+ { character: 'w', count: 4, score: 4 },
65
+ { character: 'x', count: 2, score: 8 },
66
+ { character: 'y', count: 4, score: 4 },
67
+ { character: 'z', count: 2, score: 10 },
68
+ ],
69
+ });
70
+ exports.englishGbLiteraki = new types_1.Config({
71
+ ...games_1.literaki,
72
+ locale: types_1.Locale.EN_GB,
73
+ name: 'Literaxx',
74
+ tiles: [
75
+ { character: 'a', count: 9, score: 1 },
76
+ { character: 'b', count: 2, score: 3 },
77
+ { character: 'c', count: 2, score: 3 },
78
+ { character: 'd', count: 4, score: 2 },
79
+ { character: 'e', count: 12, score: 1 },
80
+ { character: 'f', count: 2, score: 4 },
81
+ { character: 'g', count: 3, score: 2 },
82
+ { character: 'h', count: 2, score: 4 },
83
+ { character: 'i', count: 9, score: 1 },
84
+ { character: 'j', count: 1, score: 8 },
85
+ { character: 'k', count: 1, score: 5 },
86
+ { character: 'l', count: 4, score: 1 },
87
+ { character: 'm', count: 2, score: 3 },
88
+ { character: 'n', count: 6, score: 1 },
89
+ { character: 'o', count: 8, score: 1 },
90
+ { character: 'p', count: 2, score: 3 },
91
+ { character: 'q', count: 1, score: 10 },
92
+ { character: 'r', count: 6, score: 1 },
93
+ { character: 's', count: 4, score: 1 },
94
+ { character: 't', count: 6, score: 1 },
95
+ { character: 'u', count: 4, score: 1 },
96
+ { character: 'v', count: 2, score: 4 },
97
+ { character: 'w', count: 2, score: 4 },
98
+ { character: 'x', count: 1, score: 8 },
99
+ { character: 'y', count: 2, score: 4 },
100
+ { character: 'z', count: 1, score: 10 },
101
+ ],
102
+ });
103
+ exports.englishUsScrabble = new types_1.Config({
104
+ ...games_1.scrabble,
105
+ locale: types_1.Locale.EN_US,
106
+ tiles: [
107
+ { character: 'a', count: 9, score: 1 },
108
+ { character: 'b', count: 2, score: 3 },
109
+ { character: 'c', count: 2, score: 3 },
110
+ { character: 'd', count: 4, score: 2 },
111
+ { character: 'e', count: 12, score: 1 },
112
+ { character: 'f', count: 2, score: 4 },
113
+ { character: 'g', count: 3, score: 2 },
114
+ { character: 'h', count: 2, score: 4 },
115
+ { character: 'i', count: 9, score: 1 },
116
+ { character: 'j', count: 1, score: 8 },
117
+ { character: 'k', count: 1, score: 5 },
118
+ { character: 'l', count: 4, score: 1 },
119
+ { character: 'm', count: 2, score: 3 },
120
+ { character: 'n', count: 6, score: 1 },
121
+ { character: 'o', count: 8, score: 1 },
122
+ { character: 'p', count: 2, score: 3 },
123
+ { character: 'q', count: 1, score: 10 },
124
+ { character: 'r', count: 6, score: 1 },
125
+ { character: 's', count: 4, score: 1 },
126
+ { character: 't', count: 6, score: 1 },
127
+ { character: 'u', count: 4, score: 1 },
128
+ { character: 'v', count: 2, score: 4 },
129
+ { character: 'w', count: 2, score: 4 },
130
+ { character: 'x', count: 1, score: 8 },
131
+ { character: 'y', count: 2, score: 4 },
132
+ { character: 'z', count: 1, score: 10 },
133
+ ],
134
+ });
135
+ exports.englishUsSuperScrabble = new types_1.Config({
136
+ ...games_1.superScrabble,
137
+ locale: types_1.Locale.EN_US,
138
+ tiles: [
139
+ { character: 'a', count: 16, score: 1 },
140
+ { character: 'b', count: 4, score: 3 },
141
+ { character: 'c', count: 6, score: 3 },
142
+ { character: 'd', count: 8, score: 2 },
143
+ { character: 'e', count: 24, score: 1 },
144
+ { character: 'f', count: 4, score: 4 },
145
+ { character: 'g', count: 5, score: 2 },
146
+ { character: 'h', count: 5, score: 4 },
147
+ { character: 'i', count: 13, score: 1 },
148
+ { character: 'j', count: 2, score: 8 },
149
+ { character: 'k', count: 2, score: 5 },
150
+ { character: 'l', count: 7, score: 1 },
151
+ { character: 'm', count: 6, score: 3 },
152
+ { character: 'n', count: 13, score: 1 },
153
+ { character: 'o', count: 15, score: 1 },
154
+ { character: 'p', count: 4, score: 3 },
155
+ { character: 'q', count: 2, score: 10 },
156
+ { character: 'r', count: 13, score: 1 },
157
+ { character: 's', count: 10, score: 1 },
158
+ { character: 't', count: 15, score: 1 },
159
+ { character: 'u', count: 7, score: 1 },
160
+ { character: 'v', count: 3, score: 4 },
161
+ { character: 'w', count: 4, score: 4 },
162
+ { character: 'x', count: 2, score: 8 },
163
+ { character: 'y', count: 4, score: 4 },
164
+ { character: 'z', count: 2, score: 10 },
165
+ ],
166
+ });
167
+ exports.englishUsLiteraki = new types_1.Config({
168
+ ...games_1.literaki,
169
+ locale: types_1.Locale.EN_US,
170
+ name: 'Literaxx',
171
+ tiles: [
172
+ { character: 'a', count: 9, score: 1 },
173
+ { character: 'b', count: 2, score: 3 },
174
+ { character: 'c', count: 2, score: 3 },
175
+ { character: 'd', count: 4, score: 2 },
176
+ { character: 'e', count: 12, score: 1 },
177
+ { character: 'f', count: 2, score: 4 },
178
+ { character: 'g', count: 3, score: 2 },
179
+ { character: 'h', count: 2, score: 4 },
180
+ { character: 'i', count: 9, score: 1 },
181
+ { character: 'j', count: 1, score: 8 },
182
+ { character: 'k', count: 1, score: 5 },
183
+ { character: 'l', count: 4, score: 1 },
184
+ { character: 'm', count: 2, score: 3 },
185
+ { character: 'n', count: 6, score: 1 },
186
+ { character: 'o', count: 8, score: 1 },
187
+ { character: 'p', count: 2, score: 3 },
188
+ { character: 'q', count: 1, score: 10 },
189
+ { character: 'r', count: 6, score: 1 },
190
+ { character: 's', count: 4, score: 1 },
191
+ { character: 't', count: 6, score: 1 },
192
+ { character: 'u', count: 4, score: 1 },
193
+ { character: 'v', count: 2, score: 4 },
194
+ { character: 'w', count: 2, score: 4 },
195
+ { character: 'x', count: 1, score: 8 },
196
+ { character: 'y', count: 2, score: 4 },
197
+ { character: 'z', count: 1, score: 10 },
198
+ ],
199
+ });
@@ -0,0 +1,2 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const frenchScrabble: Config;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.frenchScrabble = void 0;
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const games_1 = require("../games");
6
+ exports.frenchScrabble = new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.Locale.FR_FR,
9
+ tiles: [
10
+ { character: 'a', count: 9, score: 1 },
11
+ { character: 'b', count: 2, score: 3 },
12
+ { character: 'c', count: 2, score: 3 },
13
+ { character: 'd', count: 3, score: 2 },
14
+ { character: 'e', count: 15, score: 1 },
15
+ { character: 'f', count: 2, score: 4 },
16
+ { character: 'g', count: 2, score: 2 },
17
+ { character: 'h', count: 2, score: 4 },
18
+ { character: 'i', count: 8, score: 1 },
19
+ { character: 'j', count: 1, score: 8 },
20
+ { character: 'k', count: 1, score: 10 },
21
+ { character: 'l', count: 5, score: 1 },
22
+ { character: 'm', count: 3, score: 2 },
23
+ { character: 'n', count: 6, score: 1 },
24
+ { character: 'o', count: 6, score: 1 },
25
+ { character: 'p', count: 2, score: 3 },
26
+ { character: 'q', count: 1, score: 8 },
27
+ { character: 'r', count: 6, score: 1 },
28
+ { character: 's', count: 6, score: 1 },
29
+ { character: 't', count: 6, score: 1 },
30
+ { character: 'u', count: 6, score: 1 },
31
+ { character: 'v', count: 2, score: 4 },
32
+ { character: 'w', count: 1, score: 10 },
33
+ { character: 'x', count: 1, score: 10 },
34
+ { character: 'y', count: 1, score: 10 },
35
+ { character: 'z', count: 1, score: 10 },
36
+ ],
37
+ });
@@ -0,0 +1,2 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const germanScrabble: Config;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.germanScrabble = void 0;
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const games_1 = require("../games");
6
+ exports.germanScrabble = new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.Locale.DE_DE,
9
+ tiles: [
10
+ { character: 'a', count: 5, score: 1 },
11
+ { character: 'ä', count: 1, score: 6 },
12
+ { character: 'b', count: 2, score: 3 },
13
+ { character: 'c', count: 2, score: 4 },
14
+ { character: 'd', count: 4, score: 1 },
15
+ { character: 'e', count: 15, score: 1 },
16
+ { character: 'f', count: 2, score: 4 },
17
+ { character: 'g', count: 3, score: 2 },
18
+ { character: 'h', count: 4, score: 2 },
19
+ { character: 'i', count: 6, score: 1 },
20
+ { character: 'j', count: 1, score: 6 },
21
+ { character: 'k', count: 2, score: 4 },
22
+ { character: 'l', count: 3, score: 2 },
23
+ { character: 'm', count: 4, score: 3 },
24
+ { character: 'n', count: 9, score: 1 },
25
+ { character: 'o', count: 3, score: 2 },
26
+ { character: 'ö', count: 1, score: 8 },
27
+ { character: 'p', count: 1, score: 4 },
28
+ { character: 'q', count: 1, score: 10 },
29
+ { character: 'r', count: 6, score: 1 },
30
+ { character: 's', count: 7, score: 1 },
31
+ { character: 't', count: 6, score: 1 },
32
+ { character: 'u', count: 6, score: 1 },
33
+ { character: 'ü', count: 1, score: 6 },
34
+ { character: 'v', count: 1, score: 6 },
35
+ { character: 'w', count: 1, score: 3 },
36
+ { character: 'x', count: 1, score: 8 },
37
+ { character: 'y', count: 1, score: 10 },
38
+ { character: 'z', count: 1, score: 3 },
39
+ ],
40
+ });
@@ -0,0 +1,7 @@
1
+ export * from './english';
2
+ export * from './german';
3
+ export * from './french';
4
+ export * from './persian';
5
+ export * from './polish';
6
+ export * from './romanian';
7
+ export * from './spanish';
@@ -0,0 +1,23 @@
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("./english"), exports);
18
+ __exportStar(require("./german"), exports);
19
+ __exportStar(require("./french"), exports);
20
+ __exportStar(require("./persian"), exports);
21
+ __exportStar(require("./polish"), exports);
22
+ __exportStar(require("./romanian"), exports);
23
+ __exportStar(require("./spanish"), exports);
@@ -0,0 +1,2 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const persianScrabble: Config;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.persianScrabble = void 0;
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const games_1 = require("../games");
6
+ exports.persianScrabble = new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.Locale.FA_IR,
9
+ tiles: [
10
+ { character: 'ا', count: 12, score: 1 },
11
+ { character: 'ب', count: 4, score: 1 },
12
+ { character: 'پ', count: 1, score: 6 },
13
+ { character: 'ت', count: 4, score: 1 },
14
+ { character: 'ث', count: 1, score: 10 },
15
+ { character: 'ج', count: 2, score: 5 },
16
+ { character: 'چ', count: 1, score: 6 },
17
+ { character: 'ح', count: 1, score: 6 },
18
+ { character: 'خ', count: 2, score: 5 },
19
+ { character: 'د', count: 6, score: 1 },
20
+ { character: 'ذ', count: 1, score: 10 },
21
+ { character: 'ر', count: 7, score: 1 },
22
+ { character: 'ز', count: 3, score: 4 },
23
+ { character: 'ژ', count: 1, score: 10 },
24
+ { character: 'س', count: 3, score: 2 },
25
+ { character: 'ش', count: 3, score: 3 },
26
+ { character: 'ص', count: 1, score: 6 },
27
+ { character: 'ض', count: 1, score: 8 },
28
+ { character: 'ط', count: 1, score: 8 },
29
+ { character: 'ظ', count: 1, score: 10 },
30
+ { character: 'ع', count: 2, score: 5 },
31
+ { character: 'غ', count: 1, score: 8 },
32
+ { character: 'ف', count: 2, score: 4 },
33
+ { character: 'ق', count: 2, score: 5 },
34
+ { character: 'ک', count: 3, score: 3 },
35
+ { character: 'گ', count: 2, score: 4 },
36
+ { character: 'ل', count: 3, score: 2 },
37
+ { character: 'م', count: 5, score: 1 },
38
+ { character: 'ن', count: 6, score: 1 },
39
+ { character: 'و', count: 5, score: 1 },
40
+ { character: 'ه', count: 5, score: 1 },
41
+ { character: 'ی', count: 8, score: 1 },
42
+ ],
43
+ });
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const polishScrabble: Config;
3
+ export declare const polishLiteraki: Config;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.polishLiteraki = exports.polishScrabble = void 0;
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const games_1 = require("../games");
6
+ exports.polishScrabble = new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.Locale.PL_PL,
9
+ tiles: [
10
+ { character: 'a', count: 9, score: 1 },
11
+ { character: 'ą', count: 1, score: 5 },
12
+ { character: 'b', count: 2, score: 3 },
13
+ { character: 'c', count: 3, score: 2 },
14
+ { character: 'ć', count: 1, score: 6 },
15
+ { character: 'd', count: 3, score: 2 },
16
+ { character: 'e', count: 7, score: 1 },
17
+ { character: 'ę', count: 1, score: 5 },
18
+ { character: 'f', count: 1, score: 5 },
19
+ { character: 'g', count: 2, score: 3 },
20
+ { character: 'h', count: 2, score: 3 },
21
+ { character: 'i', count: 8, score: 1 },
22
+ { character: 'j', count: 2, score: 3 },
23
+ { character: 'k', count: 3, score: 2 },
24
+ { character: 'l', count: 3, score: 2 },
25
+ { character: 'ł', count: 2, score: 3 },
26
+ { character: 'm', count: 3, score: 2 },
27
+ { character: 'n', count: 5, score: 1 },
28
+ { character: 'ń', count: 1, score: 7 },
29
+ { character: 'o', count: 6, score: 1 },
30
+ { character: 'ó', count: 1, score: 5 },
31
+ { character: 'p', count: 3, score: 2 },
32
+ { character: 'r', count: 4, score: 1 },
33
+ { character: 's', count: 4, score: 1 },
34
+ { character: 'ś', count: 1, score: 5 },
35
+ { character: 't', count: 3, score: 2 },
36
+ { character: 'u', count: 2, score: 3 },
37
+ { character: 'w', count: 4, score: 1 },
38
+ { character: 'y', count: 4, score: 2 },
39
+ { character: 'z', count: 5, score: 1 },
40
+ { character: 'ź', count: 1, score: 9 },
41
+ { character: 'ż', count: 1, score: 5 },
42
+ ],
43
+ });
44
+ exports.polishLiteraki = new types_1.Config({
45
+ ...games_1.literaki,
46
+ locale: types_1.Locale.PL_PL,
47
+ tiles: [
48
+ { character: 'a', count: 9, score: 1 },
49
+ { character: 'ą', count: 1, score: 5 },
50
+ { character: 'b', count: 2, score: 3 },
51
+ { character: 'c', count: 3, score: 2 },
52
+ { character: 'ć', count: 1, score: 5 },
53
+ { character: 'd', count: 3, score: 2 },
54
+ { character: 'e', count: 7, score: 1 },
55
+ { character: 'ę', count: 1, score: 5 },
56
+ { character: 'f', count: 1, score: 5 },
57
+ { character: 'g', count: 2, score: 3 },
58
+ { character: 'h', count: 2, score: 3 },
59
+ { character: 'i', count: 8, score: 1 },
60
+ { character: 'j', count: 2, score: 3 },
61
+ { character: 'k', count: 3, score: 2 },
62
+ { character: 'l', count: 3, score: 2 },
63
+ { character: 'ł', count: 2, score: 3 },
64
+ { character: 'm', count: 3, score: 2 },
65
+ { character: 'n', count: 5, score: 1 },
66
+ { character: 'ń', count: 1, score: 5 },
67
+ { character: 'o', count: 6, score: 1 },
68
+ { character: 'ó', count: 1, score: 5 },
69
+ { character: 'p', count: 3, score: 2 },
70
+ { character: 'r', count: 4, score: 1 },
71
+ { character: 's', count: 4, score: 1 },
72
+ { character: 'ś', count: 1, score: 5 },
73
+ { character: 't', count: 3, score: 2 },
74
+ { character: 'u', count: 2, score: 3 },
75
+ { character: 'w', count: 4, score: 1 },
76
+ { character: 'y', count: 4, score: 2 },
77
+ { character: 'z', count: 5, score: 1 },
78
+ { character: 'ź', count: 1, score: 5 },
79
+ { character: 'ż', count: 1, score: 5 },
80
+ ],
81
+ });
@@ -0,0 +1,2 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const romanianScrabble: Config;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.romanianScrabble = void 0;
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const games_1 = require("../games");
6
+ exports.romanianScrabble = new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.Locale.RO_RO,
9
+ /**
10
+ * @see https://frsc1.fortunecity.ws/reg6scr.htm#vallit
11
+ */
12
+ tiles: [
13
+ { character: 'a', count: 11, score: 1 },
14
+ { character: 'b', count: 2, score: 9 },
15
+ { character: 'c', count: 5, score: 1 },
16
+ { character: 'd', count: 4, score: 2 },
17
+ { character: 'e', count: 9, score: 1 },
18
+ { character: 'f', count: 2, score: 8 },
19
+ { character: 'g', count: 2, score: 9 },
20
+ { character: 'h', count: 1, score: 10 },
21
+ { character: 'i', count: 10, score: 1 },
22
+ { character: 'j', count: 1, score: 10 },
23
+ { character: 'l', count: 4, score: 1 },
24
+ { character: 'm', count: 3, score: 4 },
25
+ { character: 'n', count: 6, score: 1 },
26
+ { character: 'o', count: 5, score: 1 },
27
+ { character: 'p', count: 4, score: 2 },
28
+ { character: 'r', count: 7, score: 1 },
29
+ { character: 's', count: 5, score: 1 },
30
+ { character: 't', count: 7, score: 1 },
31
+ { character: 'u', count: 6, score: 1 },
32
+ { character: 'v', count: 2, score: 8 },
33
+ { character: 'x', count: 1, score: 10 },
34
+ { character: 'z', count: 1, score: 10 },
35
+ ],
36
+ });
@@ -0,0 +1,2 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const spanishScrabble: Config;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.spanishScrabble = void 0;
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const games_1 = require("../games");
6
+ exports.spanishScrabble = new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.Locale.ES_ES,
9
+ tiles: [
10
+ { character: 'a', count: 12, score: 1 },
11
+ { character: 'b', count: 2, score: 3 },
12
+ { character: 'c', count: 4, score: 3 },
13
+ { character: 'ch', count: 1, score: 5 },
14
+ { character: 'd', count: 5, score: 2 },
15
+ { character: 'e', count: 12, score: 1 },
16
+ { character: 'f', count: 1, score: 4 },
17
+ { character: 'g', count: 2, score: 2 },
18
+ { character: 'h', count: 2, score: 4 },
19
+ { character: 'i', count: 6, score: 1 },
20
+ { character: 'j', count: 1, score: 8 },
21
+ { character: 'll', count: 1, score: 8 },
22
+ { character: 'l', count: 4, score: 1 },
23
+ { character: 'm', count: 2, score: 3 },
24
+ { character: 'n', count: 5, score: 1 },
25
+ { character: 'ñ', count: 1, score: 8 },
26
+ { character: 'o', count: 9, score: 1 },
27
+ { character: 'p', count: 2, score: 3 },
28
+ { character: 'q', count: 1, score: 5 },
29
+ { character: 'r', count: 5, score: 1 },
30
+ { character: 'rr', count: 1, score: 8 },
31
+ { character: 's', count: 6, score: 1 },
32
+ { character: 't', count: 4, score: 1 },
33
+ { character: 'u', count: 5, score: 1 },
34
+ { character: 'v', count: 1, score: 4 },
35
+ { character: 'x', count: 1, score: 8 },
36
+ { character: 'y', count: 1, score: 4 },
37
+ { character: 'z', count: 1, score: 10 },
38
+ ],
39
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/configs",
3
- "version": "2.13.4",
3
+ "version": "2.13.5-alpha.1",
4
4
  "description": "Scrabble Solver 2 - Configs",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "clean": "rimraf build/"
24
24
  },
25
25
  "dependencies": {
26
- "@scrabble-solver/constants": "^2.13.4",
27
- "@scrabble-solver/types": "^2.13.4"
26
+ "@scrabble-solver/constants": "^2.13.5-alpha.1",
27
+ "@scrabble-solver/types": "^2.13.5-alpha.1"
28
28
  },
29
- "gitHead": "852ecdf9eb6aaefb9befb0cb1ea671868da7d0de"
29
+ "gitHead": "0843db4c5016829979718054193926bf71d67038"
30
30
  }