@scrabble-solver/configs 2.12.2 → 2.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,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,12 @@
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.superScrabble = exports.scrabble = exports.literaki = void 0;
7
+ var literaki_1 = require("./literaki");
8
+ Object.defineProperty(exports, "literaki", { enumerable: true, get: function () { return __importDefault(literaki_1).default; } });
9
+ var scrabble_1 = require("./scrabble");
10
+ Object.defineProperty(exports, "scrabble", { enumerable: true, get: function () { return __importDefault(scrabble_1).default; } });
11
+ var superScrabble_1 = require("./superScrabble");
12
+ Object.defineProperty(exports, "superScrabble", { enumerable: true, get: function () { return __importDefault(superScrabble_1).default; } });
@@ -0,0 +1,25 @@
1
+ import { Game } from '@scrabble-solver/types';
2
+ declare const literaki: {
3
+ allTilesBonusScore: number;
4
+ blankScore: number;
5
+ blanksCount: number;
6
+ boardHeight: number;
7
+ boardWidth: number;
8
+ game: Game;
9
+ maximumCharactersCount: number;
10
+ name: string;
11
+ bonuses: ({
12
+ multiplier: number;
13
+ score: number;
14
+ type: string;
15
+ x: number;
16
+ y: number;
17
+ } | {
18
+ multiplier: number;
19
+ type: string;
20
+ x: number;
21
+ y: number;
22
+ score?: undefined;
23
+ })[];
24
+ };
25
+ export default literaki;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const constants_1 = require("@scrabble-solver/constants");
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const literaki = {
6
+ allTilesBonusScore: 50,
7
+ blankScore: 0,
8
+ blanksCount: 2,
9
+ boardHeight: 15,
10
+ boardWidth: 15,
11
+ game: types_1.Game.Literaki,
12
+ maximumCharactersCount: 7,
13
+ name: 'Literaki',
14
+ bonuses: [
15
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 0, y: 0 },
16
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 2, y: 0 },
17
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 0 },
18
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 7, y: 0 },
19
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 0 },
20
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 12, y: 0 },
21
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 14, y: 0 },
22
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 1 },
23
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 6, y: 1 },
24
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 8, y: 1 },
25
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 1 },
26
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 2 },
27
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 2 },
28
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 2 },
29
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 7, y: 2 },
30
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 2 },
31
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 2 },
32
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 2 },
33
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 3 },
34
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 3 },
35
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 6, y: 3 },
36
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 8, y: 3 },
37
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 3 },
38
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 3 },
39
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 4 },
40
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 4 },
41
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 5, y: 4 },
42
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 9, y: 4 },
43
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 4 },
44
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 4 },
45
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 5 },
46
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 5 },
47
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 4, y: 5 },
48
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 7, y: 5 },
49
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 10, y: 5 },
50
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 5 },
51
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 5 },
52
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 1, y: 6 },
53
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 3, y: 6 },
54
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 6 },
55
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 6 },
56
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 11, y: 6 },
57
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 13, y: 6 },
58
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 0, y: 7 },
59
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 2, y: 7 },
60
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 5, y: 7 },
61
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 7, y: 7 },
62
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 9, y: 7 },
63
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 12, y: 7 },
64
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 14, y: 7 },
65
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 1, y: 8 },
66
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 3, y: 8 },
67
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 8 },
68
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 8 },
69
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 11, y: 8 },
70
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 13, y: 8 },
71
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 9 },
72
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 9 },
73
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 4, y: 9 },
74
+ { multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 7, y: 9 },
75
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 10, y: 9 },
76
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 9 },
77
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 9 },
78
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 10 },
79
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 10 },
80
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 5, y: 10 },
81
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 9, y: 10 },
82
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 10 },
83
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 10 },
84
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 11 },
85
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 11 },
86
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 6, y: 11 },
87
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 8, y: 11 },
88
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 11 },
89
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 11 },
90
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 12 },
91
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 12 },
92
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 12 },
93
+ { multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 7, y: 12 },
94
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 12 },
95
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 12 },
96
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 12 },
97
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 13 },
98
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 6, y: 13 },
99
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 8, y: 13 },
100
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 13 },
101
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 0, y: 14 },
102
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 2, y: 14 },
103
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 14 },
104
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 7, y: 14 },
105
+ { multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 14 },
106
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 12, y: 14 },
107
+ { multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 14, y: 14 },
108
+ ],
109
+ };
110
+ exports.default = literaki;
@@ -0,0 +1,18 @@
1
+ import { Game } from '@scrabble-solver/types';
2
+ declare const scrabble: {
3
+ allTilesBonusScore: number;
4
+ blankScore: number;
5
+ blanksCount: number;
6
+ boardHeight: number;
7
+ boardWidth: number;
8
+ game: Game;
9
+ maximumCharactersCount: number;
10
+ name: string;
11
+ bonuses: {
12
+ multiplier: number;
13
+ type: string;
14
+ x: number;
15
+ y: number;
16
+ }[];
17
+ };
18
+ export default scrabble;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const constants_1 = require("@scrabble-solver/constants");
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const scrabble = {
6
+ allTilesBonusScore: 50,
7
+ blankScore: 0,
8
+ blanksCount: 2,
9
+ boardHeight: 15,
10
+ boardWidth: 15,
11
+ game: types_1.Game.Scrabble,
12
+ maximumCharactersCount: 7,
13
+ name: 'Scrabble',
14
+ bonuses: [
15
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 0 },
16
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 0 },
17
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 7, y: 0 },
18
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 0 },
19
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 0 },
20
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 1 },
21
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 5, y: 1 },
22
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 9, y: 1 },
23
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 13, y: 1 },
24
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 2 },
25
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 2 },
26
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 2 },
27
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 2 },
28
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 3 },
29
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 3 },
30
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 7, y: 3 },
31
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 3 },
32
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 3 },
33
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 4 },
34
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 4 },
35
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 1, y: 5 },
36
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 5, y: 5 },
37
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 9, y: 5 },
38
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 13, y: 5 },
39
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 6 },
40
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 6 },
41
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 6 },
42
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 6 },
43
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 7 },
44
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 7 },
45
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 7, y: 7 },
46
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 7 },
47
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 7 },
48
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 8 },
49
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 8 },
50
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 8 },
51
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 8 },
52
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 1, y: 9 },
53
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 5, y: 9 },
54
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 9, y: 9 },
55
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 13, y: 9 },
56
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 10 },
57
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 10 },
58
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 11 },
59
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 11 },
60
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 7, y: 11 },
61
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 11 },
62
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 11 },
63
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 12 },
64
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 12 },
65
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 12 },
66
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 12 },
67
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 13 },
68
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 5, y: 13 },
69
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 9, y: 13 },
70
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 13, y: 13 },
71
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 14 },
72
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 14 },
73
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 7, y: 14 },
74
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 14 },
75
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 14 },
76
+ ],
77
+ };
78
+ exports.default = scrabble;
@@ -0,0 +1,18 @@
1
+ import { Game } from '@scrabble-solver/types';
2
+ declare const scrabble: {
3
+ allTilesBonusScore: number;
4
+ blankScore: number;
5
+ blanksCount: number;
6
+ boardHeight: number;
7
+ boardWidth: number;
8
+ game: Game;
9
+ maximumCharactersCount: number;
10
+ name: string;
11
+ bonuses: {
12
+ multiplier: number;
13
+ type: string;
14
+ x: number;
15
+ y: number;
16
+ }[];
17
+ };
18
+ export default scrabble;
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const constants_1 = require("@scrabble-solver/constants");
4
+ const types_1 = require("@scrabble-solver/types");
5
+ const scrabble = {
6
+ allTilesBonusScore: 50,
7
+ blankScore: 0,
8
+ blanksCount: 4,
9
+ boardHeight: 21,
10
+ boardWidth: 21,
11
+ game: types_1.Game.SuperScrabble,
12
+ maximumCharactersCount: 7,
13
+ name: 'Super Scrabble',
14
+ bonuses: [
15
+ { multiplier: 4, type: constants_1.BONUS_WORD, x: 0, y: 0 },
16
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 0 },
17
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 7, y: 0 },
18
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 0 },
19
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 13, y: 0 },
20
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 17, y: 0 },
21
+ { multiplier: 4, type: constants_1.BONUS_WORD, x: 20, y: 0 },
22
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 1 },
23
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 4, y: 1 },
24
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 8, y: 1 },
25
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 1 },
26
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 16, y: 1 },
27
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 19, y: 1 },
28
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 2 },
29
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 5, y: 2 },
30
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 2 },
31
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 2 },
32
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 15, y: 2 },
33
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 18, y: 2 },
34
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 3 },
35
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 3, y: 3 },
36
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 3 },
37
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 10, y: 3 },
38
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 3 },
39
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 17, y: 3 },
40
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 20, y: 3 },
41
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 1, y: 4 },
42
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 4 },
43
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 4 },
44
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 12, y: 4 },
45
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 16, y: 4 },
46
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 19, y: 4 },
47
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 2, y: 5 },
48
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 5 },
49
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 5 },
50
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 5 },
51
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 15, y: 5 },
52
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 18, y: 5 },
53
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 6 },
54
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 6, y: 6 },
55
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 6 },
56
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 14, y: 6 },
57
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 17, y: 6 },
58
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 7 },
59
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 7, y: 7 },
60
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 13, y: 7 },
61
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 20, y: 7 },
62
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 8 },
63
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 4, y: 8 },
64
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 8 },
65
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 12, y: 8 },
66
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 16, y: 8 },
67
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 19, y: 8 },
68
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 9 },
69
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 9 },
70
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 9 },
71
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 9 },
72
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 15, y: 9 },
73
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 18, y: 9 },
74
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 10 },
75
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 3, y: 10 },
76
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 10 },
77
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 10 },
78
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 17, y: 10 },
79
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 20, y: 10 },
80
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 11 },
81
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 11 },
82
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 11 },
83
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 11 },
84
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 15, y: 11 },
85
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 18, y: 11 },
86
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 12 },
87
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 4, y: 12 },
88
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 12 },
89
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 12, y: 12 },
90
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 16, y: 12 },
91
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 19, y: 12 },
92
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 13 },
93
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 7, y: 13 },
94
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 13, y: 13 },
95
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 20, y: 13 },
96
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 14 },
97
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 6, y: 14 },
98
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 14 },
99
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 14, y: 14 },
100
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 17, y: 14 },
101
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 2, y: 15 },
102
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 15 },
103
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 15 },
104
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 15 },
105
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 15, y: 15 },
106
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 18, y: 15 },
107
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 1, y: 16 },
108
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 16 },
109
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 16 },
110
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 12, y: 16 },
111
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 16, y: 16 },
112
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 19, y: 16 },
113
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 17 },
114
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 3, y: 17 },
115
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 17 },
116
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 10, y: 17 },
117
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 17 },
118
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 17, y: 17 },
119
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 20, y: 17 },
120
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 18 },
121
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 5, y: 18 },
122
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 18 },
123
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 18 },
124
+ { multiplier: 4, type: constants_1.BONUS_CHARACTER, x: 15, y: 18 },
125
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 18, y: 18 },
126
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 19 },
127
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 4, y: 19 },
128
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 8, y: 19 },
129
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 19 },
130
+ { multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 16, y: 19 },
131
+ { multiplier: 2, type: constants_1.BONUS_WORD, x: 19, y: 19 },
132
+ { multiplier: 4, type: constants_1.BONUS_WORD, x: 0, y: 20 },
133
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 20 },
134
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 7, y: 20 },
135
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 20 },
136
+ { multiplier: 3, type: constants_1.BONUS_WORD, x: 13, y: 20 },
137
+ { multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 17, y: 20 },
138
+ { multiplier: 4, type: constants_1.BONUS_WORD, x: 20, y: 20 },
139
+ ],
140
+ };
141
+ exports.default = scrabble;
@@ -1,7 +1,3 @@
1
- import { Config, Locale } from '@scrabble-solver/types';
2
- interface Result extends Record<Locale, Config> {
3
- id: string;
4
- name: string;
5
- }
6
- declare const getConfig: (configId: string) => Result;
1
+ import { Config, Game, Locale } from '@scrabble-solver/types';
2
+ declare const getConfig: (game: Game, locale: Locale) => Config;
7
3
  export default getConfig;
@@ -1,16 +1,35 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
4
24
  };
5
25
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const literaki_1 = __importDefault(require("./literaki"));
7
- const scrabble_1 = __importDefault(require("./scrabble"));
8
- const configs = [literaki_1.default, scrabble_1.default];
9
- const getConfig = (configId) => {
10
- const config = configs.find(({ id }) => id === configId);
11
- if (!config) {
12
- throw new Error(`Invalid "configId" parameter: not one of ${configs.map(({ id }) => id).join('/')}`);
26
+ const locales = __importStar(require("./locales"));
27
+ const getConfig = (game, locale) => {
28
+ const configs = Object.values(locales).flat();
29
+ const localeConfig = configs.find((config) => config.game === game && config.locale === locale);
30
+ if (typeof localeConfig === 'undefined') {
31
+ throw new Error(`No game "${game}" in "${locale}"`);
13
32
  }
14
- return config;
33
+ return localeConfig;
15
34
  };
16
35
  exports.default = getConfig;
@@ -0,0 +1,3 @@
1
+ import { Game, Locale } from '@scrabble-solver/types';
2
+ declare const hasConfig: (game: Game, locale: Locale) => boolean;
3
+ export default hasConfig;
@@ -0,0 +1,31 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const locales = __importStar(require("./locales"));
27
+ const hasConfig = (game, locale) => {
28
+ const configs = Object.values(locales).flat();
29
+ return configs.some((config) => config.game === game && config.locale === locale);
30
+ };
31
+ exports.default = hasConfig;
package/build/index.d.ts CHANGED
@@ -1,5 +1,8 @@
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
+ };
1
6
  export { default as getConfig } from './getConfig';
2
- export { default as getLocaleConfig } from './getLocaleConfig';
3
- export { default as isConfigId } from './isConfigId';
4
- export { default as literaki } from './literaki';
5
- export { default as scrabble } from './scrabble';
7
+ export { default as hasConfig } from './hasConfig';
8
+ export { games, locales, localesMap };
package/build/index.js CHANGED
@@ -1,16 +1,39 @@
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.scrabble = exports.literaki = exports.isConfigId = exports.getLocaleConfig = exports.getConfig = void 0;
29
+ exports.localesMap = exports.locales = exports.games = exports.hasConfig = exports.getConfig = void 0;
30
+ const games = __importStar(require("./games"));
31
+ 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;
7
36
  var getConfig_1 = require("./getConfig");
8
37
  Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return __importDefault(getConfig_1).default; } });
9
- var getLocaleConfig_1 = require("./getLocaleConfig");
10
- Object.defineProperty(exports, "getLocaleConfig", { enumerable: true, get: function () { return __importDefault(getLocaleConfig_1).default; } });
11
- var isConfigId_1 = require("./isConfigId");
12
- Object.defineProperty(exports, "isConfigId", { enumerable: true, get: function () { return __importDefault(isConfigId_1).default; } });
13
- var literaki_1 = require("./literaki");
14
- Object.defineProperty(exports, "literaki", { enumerable: true, get: function () { return __importDefault(literaki_1).default; } });
15
- var scrabble_1 = require("./scrabble");
16
- Object.defineProperty(exports, "scrabble", { enumerable: true, get: function () { return __importDefault(scrabble_1).default; } });
38
+ var hasConfig_1 = require("./hasConfig");
39
+ Object.defineProperty(exports, "hasConfig", { enumerable: true, get: function () { return __importDefault(hasConfig_1).default; } });
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ declare const deDe: Config[];
3
+ export default deDe;
@@ -0,0 +1,42 @@
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 deDe = [
6
+ 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
+ }),
41
+ ];
42
+ exports.default = deDe;
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ declare const enGb: Config[];
3
+ export default enGb;