@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,105 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import { literaki, scrabble, superScrabble } from '../games';
4
-
5
- const enGb: Config[] = [
6
- new Config({
7
- ...scrabble,
8
- locale: 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
- 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
- new Config({
71
- ...literaki,
72
- locale: 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
- ];
104
-
105
- export default enGb;
@@ -1,105 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import { literaki, scrabble, superScrabble } from '../games';
4
-
5
- const enUs: Config[] = [
6
- new Config({
7
- ...scrabble,
8
- locale: Locale.EN_US,
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
- new Config({
39
- ...superScrabble,
40
- locale: Locale.EN_US,
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
- new Config({
71
- ...literaki,
72
- locale: Locale.EN_US,
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
- ];
104
-
105
- export default enUs;
@@ -1,42 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import { scrabble } from '../games';
4
-
5
- const esEs: Config[] = [
6
- new Config({
7
- ...scrabble,
8
- locale: 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
- }),
40
- ];
41
-
42
- export default esEs;
@@ -1,46 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import { scrabble } from '../games';
4
-
5
- const faIr: Config[] = [
6
- new Config({
7
- ...scrabble,
8
- locale: 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
- }),
44
- ];
45
-
46
- export default faIr;
@@ -1,40 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import { scrabble } from '../games';
4
-
5
- const frFr: Config[] = [
6
- new Config({
7
- ...scrabble,
8
- locale: 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
- }),
38
- ];
39
-
40
- export default frFr;
@@ -1,8 +0,0 @@
1
- export { default as deDe } from './deDe';
2
- export { default as enGb } from './enGb';
3
- export { default as enUs } from './enUs';
4
- export { default as esEs } from './esEs';
5
- export { default as faIr } from './faIr';
6
- export { default as frFr } from './frFr';
7
- export { default as plPl } from './plPl';
8
- export { default as roRo } from './roRo';
@@ -1,84 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import { literaki, scrabble } from '../games';
4
-
5
- const plPL: Config[] = [
6
- new Config({
7
- ...scrabble,
8
- locale: 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
- 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
- }),
82
- ];
83
-
84
- export default plPL;
@@ -1,39 +0,0 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
-
3
- import { scrabble } from '../games';
4
-
5
- const roRo: Config[] = [
6
- new Config({
7
- ...scrabble,
8
- locale: 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
- }),
37
- ];
38
-
39
- export default roRo;