@scrabble-solver/configs 2.12.2 → 2.12.4

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 (112) hide show
  1. package/build/games/index.d.ts +3 -0
  2. package/build/games/index.js +12 -0
  3. package/build/games/literaki.d.ts +25 -0
  4. package/build/games/literaki.js +110 -0
  5. package/build/games/scrabble.d.ts +18 -0
  6. package/build/games/scrabble.js +78 -0
  7. package/build/games/superScrabble.d.ts +18 -0
  8. package/build/games/superScrabble.js +141 -0
  9. package/build/getConfig.d.ts +2 -6
  10. package/build/getConfig.js +29 -10
  11. package/build/hasConfig.d.ts +3 -0
  12. package/build/hasConfig.js +31 -0
  13. package/build/index.d.ts +7 -4
  14. package/build/index.js +32 -9
  15. package/build/locales/deDe.d.ts +3 -0
  16. package/build/locales/deDe.js +42 -0
  17. package/build/locales/enGb.d.ts +3 -0
  18. package/build/locales/enGb.js +104 -0
  19. package/build/locales/enUs.d.ts +3 -0
  20. package/build/locales/enUs.js +104 -0
  21. package/build/locales/esEs.d.ts +3 -0
  22. package/build/locales/esEs.js +41 -0
  23. package/build/locales/faIr.d.ts +3 -0
  24. package/build/locales/faIr.js +45 -0
  25. package/build/locales/frFr.d.ts +3 -0
  26. package/build/locales/frFr.js +39 -0
  27. package/build/locales/index.d.ts +7 -0
  28. package/build/locales/index.js +20 -0
  29. package/build/locales/plPl.d.ts +3 -0
  30. package/build/locales/plPl.js +83 -0
  31. package/package.json +4 -4
  32. package/src/games/index.ts +3 -0
  33. package/src/games/literaki.ts +110 -0
  34. package/src/games/scrabble.ts +78 -0
  35. package/src/games/superScrabble.ts +141 -0
  36. package/src/getConfig.ts +8 -15
  37. package/src/hasConfig.ts +10 -0
  38. package/src/index.ts +7 -4
  39. package/src/locales/deDe.ts +43 -0
  40. package/src/locales/enGb.ts +105 -0
  41. package/src/locales/enUs.ts +105 -0
  42. package/src/locales/esEs.ts +42 -0
  43. package/src/locales/faIr.ts +46 -0
  44. package/src/locales/frFr.ts +40 -0
  45. package/src/locales/index.ts +7 -0
  46. package/src/locales/plPl.ts +84 -0
  47. package/build/getLocaleConfig.d.ts +0 -3
  48. package/build/getLocaleConfig.js +0 -10
  49. package/build/isConfigId.d.ts +0 -2
  50. package/build/isConfigId.js +0 -12
  51. package/build/literaki/bonuses.d.ts +0 -14
  52. package/build/literaki/bonuses.js +0 -99
  53. package/build/literaki/index.d.ts +0 -1
  54. package/build/literaki/index.js +0 -8
  55. package/build/literaki/literaki.d.ts +0 -13
  56. package/build/literaki/literaki.js +0 -31
  57. package/build/literaki/tiles/index.d.ts +0 -6
  58. package/build/literaki/tiles/index.js +0 -18
  59. package/build/literaki/tiles/tilesDe.d.ts +0 -6
  60. package/build/literaki/tiles/tilesDe.js +0 -34
  61. package/build/literaki/tiles/tilesEn.d.ts +0 -6
  62. package/build/literaki/tiles/tilesEn.js +0 -31
  63. package/build/literaki/tiles/tilesEs.d.ts +0 -6
  64. package/build/literaki/tiles/tilesEs.js +0 -33
  65. package/build/literaki/tiles/tilesFa.d.ts +0 -6
  66. package/build/literaki/tiles/tilesFa.js +0 -37
  67. package/build/literaki/tiles/tilesFr.d.ts +0 -6
  68. package/build/literaki/tiles/tilesFr.js +0 -31
  69. package/build/literaki/tiles/tilesPl.d.ts +0 -6
  70. package/build/literaki/tiles/tilesPl.js +0 -37
  71. package/build/scrabble/bonuses.d.ts +0 -7
  72. package/build/scrabble/bonuses.js +0 -67
  73. package/build/scrabble/index.d.ts +0 -1
  74. package/build/scrabble/index.js +0 -8
  75. package/build/scrabble/scrabble.d.ts +0 -13
  76. package/build/scrabble/scrabble.js +0 -31
  77. package/build/scrabble/tiles/index.d.ts +0 -6
  78. package/build/scrabble/tiles/index.js +0 -18
  79. package/build/scrabble/tiles/tilesDe.d.ts +0 -6
  80. package/build/scrabble/tiles/tilesDe.js +0 -34
  81. package/build/scrabble/tiles/tilesEn.d.ts +0 -6
  82. package/build/scrabble/tiles/tilesEn.js +0 -31
  83. package/build/scrabble/tiles/tilesEs.d.ts +0 -6
  84. package/build/scrabble/tiles/tilesEs.js +0 -33
  85. package/build/scrabble/tiles/tilesFa.d.ts +0 -6
  86. package/build/scrabble/tiles/tilesFa.js +0 -37
  87. package/build/scrabble/tiles/tilesFr.d.ts +0 -6
  88. package/build/scrabble/tiles/tilesFr.js +0 -31
  89. package/build/scrabble/tiles/tilesPl.d.ts +0 -6
  90. package/build/scrabble/tiles/tilesPl.js +0 -37
  91. package/src/getLocaleConfig.ts +0 -9
  92. package/src/isConfigId.ts +0 -10
  93. package/src/literaki/bonuses.ts +0 -99
  94. package/src/literaki/index.ts +0 -1
  95. package/src/literaki/literaki.ts +0 -30
  96. package/src/literaki/tiles/index.ts +0 -6
  97. package/src/literaki/tiles/tilesDe.ts +0 -33
  98. package/src/literaki/tiles/tilesEn.ts +0 -30
  99. package/src/literaki/tiles/tilesEs.ts +0 -32
  100. package/src/literaki/tiles/tilesFa.ts +0 -36
  101. package/src/literaki/tiles/tilesFr.ts +0 -30
  102. package/src/literaki/tiles/tilesPl.ts +0 -36
  103. package/src/scrabble/bonuses.ts +0 -67
  104. package/src/scrabble/index.ts +0 -1
  105. package/src/scrabble/scrabble.ts +0 -30
  106. package/src/scrabble/tiles/index.ts +0 -6
  107. package/src/scrabble/tiles/tilesDe.ts +0 -33
  108. package/src/scrabble/tiles/tilesEn.ts +0 -30
  109. package/src/scrabble/tiles/tilesEs.ts +0 -32
  110. package/src/scrabble/tiles/tilesFa.ts +0 -36
  111. package/src/scrabble/tiles/tilesFr.ts +0 -30
  112. package/src/scrabble/tiles/tilesPl.ts +0 -36
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("@scrabble-solver/types");
4
+ const games_1 = require("../games");
5
+ const enGb = [
6
+ 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
+ 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
+ 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
+ ];
104
+ exports.default = enGb;
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ declare const enUs: Config[];
3
+ export default enUs;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("@scrabble-solver/types");
4
+ const games_1 = require("../games");
5
+ const enUs = [
6
+ new types_1.Config({
7
+ ...games_1.scrabble,
8
+ locale: types_1.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 types_1.Config({
39
+ ...games_1.superScrabble,
40
+ locale: types_1.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 types_1.Config({
71
+ ...games_1.literaki,
72
+ locale: types_1.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
+ exports.default = enUs;
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ declare const esEs: Config[];
3
+ export default esEs;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("@scrabble-solver/types");
4
+ const games_1 = require("../games");
5
+ const esEs = [
6
+ 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
+ }),
40
+ ];
41
+ exports.default = esEs;
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ declare const faIr: Config[];
3
+ export default faIr;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("@scrabble-solver/types");
4
+ const games_1 = require("../games");
5
+ const faIr = [
6
+ 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
+ }),
44
+ ];
45
+ exports.default = faIr;
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ declare const frFr: Config[];
3
+ export default frFr;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("@scrabble-solver/types");
4
+ const games_1 = require("../games");
5
+ const frFr = [
6
+ 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
+ }),
38
+ ];
39
+ exports.default = frFr;
@@ -0,0 +1,7 @@
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';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.plPl = exports.frFr = exports.faIr = exports.esEs = exports.enUs = exports.enGb = exports.deDe = void 0;
7
+ var deDe_1 = require("./deDe");
8
+ Object.defineProperty(exports, "deDe", { enumerable: true, get: function () { return __importDefault(deDe_1).default; } });
9
+ var enGb_1 = require("./enGb");
10
+ Object.defineProperty(exports, "enGb", { enumerable: true, get: function () { return __importDefault(enGb_1).default; } });
11
+ var enUs_1 = require("./enUs");
12
+ Object.defineProperty(exports, "enUs", { enumerable: true, get: function () { return __importDefault(enUs_1).default; } });
13
+ var esEs_1 = require("./esEs");
14
+ Object.defineProperty(exports, "esEs", { enumerable: true, get: function () { return __importDefault(esEs_1).default; } });
15
+ var faIr_1 = require("./faIr");
16
+ Object.defineProperty(exports, "faIr", { enumerable: true, get: function () { return __importDefault(faIr_1).default; } });
17
+ var frFr_1 = require("./frFr");
18
+ Object.defineProperty(exports, "frFr", { enumerable: true, get: function () { return __importDefault(frFr_1).default; } });
19
+ var plPl_1 = require("./plPl");
20
+ Object.defineProperty(exports, "plPl", { enumerable: true, get: function () { return __importDefault(plPl_1).default; } });
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ declare const plPL: Config[];
3
+ export default plPL;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("@scrabble-solver/types");
4
+ const games_1 = require("../games");
5
+ const plPL = [
6
+ 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
+ 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
+ }),
82
+ ];
83
+ exports.default = plPL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/configs",
3
- "version": "2.12.2",
3
+ "version": "2.12.4",
4
4
  "description": "Scrabble Solver 2 - Configs",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -24,8 +24,8 @@
24
24
  "clean:force": "npm run clean && rimraf package-lock.json"
25
25
  },
26
26
  "dependencies": {
27
- "@scrabble-solver/constants": "^2.12.2",
28
- "@scrabble-solver/types": "^2.12.2"
27
+ "@scrabble-solver/constants": "^2.12.4",
28
+ "@scrabble-solver/types": "^2.12.4"
29
29
  },
30
- "gitHead": "22ec8b756bf1f50d94028c8e69ccc269c23e5759"
30
+ "gitHead": "b7af635998fc55dcfb05c009d856819550cb20d8"
31
31
  }
@@ -0,0 +1,3 @@
1
+ export { default as literaki } from './literaki';
2
+ export { default as scrabble } from './scrabble';
3
+ export { default as superScrabble } from './superScrabble';
@@ -0,0 +1,110 @@
1
+ import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
2
+ import { Game } from '@scrabble-solver/types';
3
+
4
+ const literaki = {
5
+ allTilesBonusScore: 50,
6
+ blankScore: 0,
7
+ blanksCount: 2,
8
+ boardHeight: 15,
9
+ boardWidth: 15,
10
+ game: Game.Literaki,
11
+ maximumCharactersCount: 7,
12
+ name: 'Literaki',
13
+ bonuses: [
14
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 0, y: 0 },
15
+ { multiplier: 3, type: BONUS_WORD, x: 2, y: 0 },
16
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 5, y: 0 },
17
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 7, y: 0 },
18
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 9, y: 0 },
19
+ { multiplier: 3, type: BONUS_WORD, x: 12, y: 0 },
20
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 14, y: 0 },
21
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 4, y: 1 },
22
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 6, y: 1 },
23
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 8, y: 1 },
24
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 10, y: 1 },
25
+ { multiplier: 3, type: BONUS_WORD, x: 0, y: 2 },
26
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 3, y: 2 },
27
+ { multiplier: 2, type: BONUS_WORD, x: 5, y: 2 },
28
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 7, y: 2 },
29
+ { multiplier: 2, type: BONUS_WORD, x: 9, y: 2 },
30
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 11, y: 2 },
31
+ { multiplier: 3, type: BONUS_WORD, x: 14, y: 2 },
32
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 2, y: 3 },
33
+ { multiplier: 2, type: BONUS_WORD, x: 4, y: 3 },
34
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 6, y: 3 },
35
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 8, y: 3 },
36
+ { multiplier: 2, type: BONUS_WORD, x: 10, y: 3 },
37
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 12, y: 3 },
38
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 1, y: 4 },
39
+ { multiplier: 2, type: BONUS_WORD, x: 3, y: 4 },
40
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 5, y: 4 },
41
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 9, y: 4 },
42
+ { multiplier: 2, type: BONUS_WORD, x: 11, y: 4 },
43
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 13, y: 4 },
44
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 0, y: 5 },
45
+ { multiplier: 2, type: BONUS_WORD, x: 2, y: 5 },
46
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 4, y: 5 },
47
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 7, y: 5 },
48
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 10, y: 5 },
49
+ { multiplier: 2, type: BONUS_WORD, x: 12, y: 5 },
50
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 14, y: 5 },
51
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 1, y: 6 },
52
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 3, y: 6 },
53
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 6, y: 6 },
54
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 8, y: 6 },
55
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 11, y: 6 },
56
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 13, y: 6 },
57
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 0, y: 7 },
58
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 2, y: 7 },
59
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 5, y: 7 },
60
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 7, y: 7 },
61
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 9, y: 7 },
62
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 12, y: 7 },
63
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 14, y: 7 },
64
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 1, y: 8 },
65
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 3, y: 8 },
66
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 6, y: 8 },
67
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 8, y: 8 },
68
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 11, y: 8 },
69
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 13, y: 8 },
70
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 0, y: 9 },
71
+ { multiplier: 2, type: BONUS_WORD, x: 2, y: 9 },
72
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 4, y: 9 },
73
+ { multiplier: 3, score: 3, type: BONUS_CHARACTER, x: 7, y: 9 },
74
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 10, y: 9 },
75
+ { multiplier: 2, type: BONUS_WORD, x: 12, y: 9 },
76
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 14, y: 9 },
77
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 1, y: 10 },
78
+ { multiplier: 2, type: BONUS_WORD, x: 3, y: 10 },
79
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 5, y: 10 },
80
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 9, y: 10 },
81
+ { multiplier: 2, type: BONUS_WORD, x: 11, y: 10 },
82
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 13, y: 10 },
83
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 2, y: 11 },
84
+ { multiplier: 2, type: BONUS_WORD, x: 4, y: 11 },
85
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 6, y: 11 },
86
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 8, y: 11 },
87
+ { multiplier: 2, type: BONUS_WORD, x: 10, y: 11 },
88
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 12, y: 11 },
89
+ { multiplier: 3, type: BONUS_WORD, x: 0, y: 12 },
90
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 3, y: 12 },
91
+ { multiplier: 2, type: BONUS_WORD, x: 5, y: 12 },
92
+ { multiplier: 3, score: 1, type: BONUS_CHARACTER, x: 7, y: 12 },
93
+ { multiplier: 2, type: BONUS_WORD, x: 9, y: 12 },
94
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 11, y: 12 },
95
+ { multiplier: 3, type: BONUS_WORD, x: 14, y: 12 },
96
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 4, y: 13 },
97
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 6, y: 13 },
98
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 8, y: 13 },
99
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 10, y: 13 },
100
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 0, y: 14 },
101
+ { multiplier: 3, type: BONUS_WORD, x: 2, y: 14 },
102
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 5, y: 14 },
103
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 7, y: 14 },
104
+ { multiplier: 3, score: 2, type: BONUS_CHARACTER, x: 9, y: 14 },
105
+ { multiplier: 3, type: BONUS_WORD, x: 12, y: 14 },
106
+ { multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 14, y: 14 },
107
+ ],
108
+ };
109
+
110
+ export default literaki;