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