@scrabble-solver/configs 2.12.1 → 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.
- package/build/games/index.d.ts +3 -0
- package/build/games/index.js +12 -0
- package/build/games/literaki.d.ts +25 -0
- package/build/games/literaki.js +110 -0
- package/build/games/scrabble.d.ts +18 -0
- package/build/games/scrabble.js +78 -0
- package/build/games/superScrabble.d.ts +18 -0
- package/build/games/superScrabble.js +141 -0
- package/build/getConfig.d.ts +2 -6
- package/build/getConfig.js +29 -10
- package/build/hasConfig.d.ts +3 -0
- package/build/hasConfig.js +31 -0
- package/build/index.d.ts +7 -4
- package/build/index.js +32 -9
- package/build/locales/deDe.d.ts +3 -0
- package/build/locales/deDe.js +42 -0
- package/build/locales/enGb.d.ts +3 -0
- package/build/locales/enGb.js +104 -0
- package/build/locales/enUs.d.ts +3 -0
- package/build/locales/enUs.js +104 -0
- package/build/locales/esEs.d.ts +3 -0
- package/build/locales/esEs.js +41 -0
- package/build/locales/faIr.d.ts +3 -0
- package/build/locales/faIr.js +45 -0
- package/build/locales/frFr.d.ts +3 -0
- package/build/locales/frFr.js +39 -0
- package/build/locales/index.d.ts +7 -0
- package/build/locales/index.js +20 -0
- package/build/locales/plPl.d.ts +3 -0
- package/build/locales/plPl.js +83 -0
- package/package.json +5 -5
- package/src/games/index.ts +3 -0
- package/src/games/literaki.ts +110 -0
- package/src/games/scrabble.ts +78 -0
- package/src/games/superScrabble.ts +141 -0
- package/src/getConfig.ts +8 -15
- package/src/hasConfig.ts +10 -0
- package/src/index.ts +7 -4
- package/src/locales/deDe.ts +43 -0
- package/src/locales/enGb.ts +105 -0
- package/src/locales/enUs.ts +105 -0
- package/src/locales/esEs.ts +42 -0
- package/src/locales/faIr.ts +46 -0
- package/src/locales/frFr.ts +40 -0
- package/src/locales/index.ts +7 -0
- package/src/locales/plPl.ts +84 -0
- package/build/getLocaleConfig.d.ts +0 -3
- package/build/getLocaleConfig.js +0 -10
- package/build/isConfigId.d.ts +0 -2
- package/build/isConfigId.js +0 -12
- package/build/literaki/bonuses.d.ts +0 -14
- package/build/literaki/bonuses.js +0 -99
- package/build/literaki/index.d.ts +0 -1
- package/build/literaki/index.js +0 -8
- package/build/literaki/literaki.d.ts +0 -13
- package/build/literaki/literaki.js +0 -31
- package/build/literaki/tiles/index.d.ts +0 -6
- package/build/literaki/tiles/index.js +0 -18
- package/build/literaki/tiles/tilesDe.d.ts +0 -6
- package/build/literaki/tiles/tilesDe.js +0 -34
- package/build/literaki/tiles/tilesEn.d.ts +0 -6
- package/build/literaki/tiles/tilesEn.js +0 -31
- package/build/literaki/tiles/tilesEs.d.ts +0 -6
- package/build/literaki/tiles/tilesEs.js +0 -33
- package/build/literaki/tiles/tilesFa.d.ts +0 -6
- package/build/literaki/tiles/tilesFa.js +0 -37
- package/build/literaki/tiles/tilesFr.d.ts +0 -6
- package/build/literaki/tiles/tilesFr.js +0 -31
- package/build/literaki/tiles/tilesPl.d.ts +0 -6
- package/build/literaki/tiles/tilesPl.js +0 -37
- package/build/scrabble/bonuses.d.ts +0 -7
- package/build/scrabble/bonuses.js +0 -67
- package/build/scrabble/index.d.ts +0 -1
- package/build/scrabble/index.js +0 -8
- package/build/scrabble/scrabble.d.ts +0 -13
- package/build/scrabble/scrabble.js +0 -31
- package/build/scrabble/tiles/index.d.ts +0 -6
- package/build/scrabble/tiles/index.js +0 -18
- package/build/scrabble/tiles/tilesDe.d.ts +0 -6
- package/build/scrabble/tiles/tilesDe.js +0 -34
- package/build/scrabble/tiles/tilesEn.d.ts +0 -6
- package/build/scrabble/tiles/tilesEn.js +0 -31
- package/build/scrabble/tiles/tilesEs.d.ts +0 -6
- package/build/scrabble/tiles/tilesEs.js +0 -33
- package/build/scrabble/tiles/tilesFa.d.ts +0 -6
- package/build/scrabble/tiles/tilesFa.js +0 -37
- package/build/scrabble/tiles/tilesFr.d.ts +0 -6
- package/build/scrabble/tiles/tilesFr.js +0 -31
- package/build/scrabble/tiles/tilesPl.d.ts +0 -6
- package/build/scrabble/tiles/tilesPl.js +0 -37
- package/src/getLocaleConfig.ts +0 -9
- package/src/isConfigId.ts +0 -10
- package/src/literaki/bonuses.ts +0 -99
- package/src/literaki/index.ts +0 -1
- package/src/literaki/literaki.ts +0 -30
- package/src/literaki/tiles/index.ts +0 -6
- package/src/literaki/tiles/tilesDe.ts +0 -33
- package/src/literaki/tiles/tilesEn.ts +0 -30
- package/src/literaki/tiles/tilesEs.ts +0 -32
- package/src/literaki/tiles/tilesFa.ts +0 -36
- package/src/literaki/tiles/tilesFr.ts +0 -30
- package/src/literaki/tiles/tilesPl.ts +0 -36
- package/src/scrabble/bonuses.ts +0 -67
- package/src/scrabble/index.ts +0 -1
- package/src/scrabble/scrabble.ts +0 -30
- package/src/scrabble/tiles/index.ts +0 -6
- package/src/scrabble/tiles/tilesDe.ts +0 -33
- package/src/scrabble/tiles/tilesEn.ts +0 -30
- package/src/scrabble/tiles/tilesEs.ts +0 -32
- package/src/scrabble/tiles/tilesFa.ts +0 -36
- package/src/scrabble/tiles/tilesFr.ts +0 -30
- package/src/scrabble/tiles/tilesPl.ts +0 -36
|
@@ -0,0 +1,84 @@
|
|
|
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;
|
package/build/getLocaleConfig.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
const getConfig_1 = __importDefault(require("./getConfig"));
|
|
7
|
-
const getLocaleConfig = (configId, locale) => {
|
|
8
|
-
return (0, getConfig_1.default)(configId)[locale];
|
|
9
|
-
};
|
|
10
|
-
exports.default = getLocaleConfig;
|
package/build/isConfigId.d.ts
DELETED
package/build/isConfigId.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
const literaki_1 = __importDefault(require("./literaki"));
|
|
7
|
-
const scrabble_1 = __importDefault(require("./scrabble"));
|
|
8
|
-
const configs = [literaki_1.default, scrabble_1.default];
|
|
9
|
-
const isConfigId = (configId) => {
|
|
10
|
-
return configs.some(({ id }) => id === configId);
|
|
11
|
-
};
|
|
12
|
-
exports.default = isConfigId;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const constants_1 = require("@scrabble-solver/constants");
|
|
4
|
-
const bonuses = [
|
|
5
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 0, y: 0 },
|
|
6
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 2, y: 0 },
|
|
7
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 0 },
|
|
8
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 7, y: 0 },
|
|
9
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 0 },
|
|
10
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 12, y: 0 },
|
|
11
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 14, y: 0 },
|
|
12
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 1 },
|
|
13
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 6, y: 1 },
|
|
14
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 8, y: 1 },
|
|
15
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 1 },
|
|
16
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 2 },
|
|
17
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 2 },
|
|
18
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 2 },
|
|
19
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 7, y: 2 },
|
|
20
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 2 },
|
|
21
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 2 },
|
|
22
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 2 },
|
|
23
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 3 },
|
|
24
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 3 },
|
|
25
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 6, y: 3 },
|
|
26
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 8, y: 3 },
|
|
27
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 3 },
|
|
28
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 3 },
|
|
29
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 4 },
|
|
30
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 4 },
|
|
31
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 5, y: 4 },
|
|
32
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 9, y: 4 },
|
|
33
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 4 },
|
|
34
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 4 },
|
|
35
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 5 },
|
|
36
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 5 },
|
|
37
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 4, y: 5 },
|
|
38
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 7, y: 5 },
|
|
39
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 10, y: 5 },
|
|
40
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 5 },
|
|
41
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 5 },
|
|
42
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 1, y: 6 },
|
|
43
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 3, y: 6 },
|
|
44
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 6 },
|
|
45
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 6 },
|
|
46
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 11, y: 6 },
|
|
47
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 13, y: 6 },
|
|
48
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 0, y: 7 },
|
|
49
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 2, y: 7 },
|
|
50
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 5, y: 7 },
|
|
51
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 7, y: 7 },
|
|
52
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 9, y: 7 },
|
|
53
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 12, y: 7 },
|
|
54
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 14, y: 7 },
|
|
55
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 1, y: 8 },
|
|
56
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 3, y: 8 },
|
|
57
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 8 },
|
|
58
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 8 },
|
|
59
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 11, y: 8 },
|
|
60
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 13, y: 8 },
|
|
61
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 9 },
|
|
62
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 9 },
|
|
63
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 4, y: 9 },
|
|
64
|
-
{ multiplier: 3, score: 3, type: constants_1.BONUS_CHARACTER, x: 7, y: 9 },
|
|
65
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 10, y: 9 },
|
|
66
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 9 },
|
|
67
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 9 },
|
|
68
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 10 },
|
|
69
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 10 },
|
|
70
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 5, y: 10 },
|
|
71
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 9, y: 10 },
|
|
72
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 10 },
|
|
73
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 10 },
|
|
74
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 11 },
|
|
75
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 11 },
|
|
76
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 6, y: 11 },
|
|
77
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 8, y: 11 },
|
|
78
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 11 },
|
|
79
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 11 },
|
|
80
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 12 },
|
|
81
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 12 },
|
|
82
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 12 },
|
|
83
|
-
{ multiplier: 3, score: 1, type: constants_1.BONUS_CHARACTER, x: 7, y: 12 },
|
|
84
|
-
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 12 },
|
|
85
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 12 },
|
|
86
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 12 },
|
|
87
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 13 },
|
|
88
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 6, y: 13 },
|
|
89
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 8, y: 13 },
|
|
90
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 13 },
|
|
91
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 0, y: 14 },
|
|
92
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 2, y: 14 },
|
|
93
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 14 },
|
|
94
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 7, y: 14 },
|
|
95
|
-
{ multiplier: 3, score: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 14 },
|
|
96
|
-
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 12, y: 14 },
|
|
97
|
-
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 14, y: 14 },
|
|
98
|
-
];
|
|
99
|
-
exports.default = bonuses;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './literaki';
|
package/build/literaki/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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.default = void 0;
|
|
7
|
-
var literaki_1 = require("./literaki");
|
|
8
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(literaki_1).default; } });
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Config } from '@scrabble-solver/types';
|
|
2
|
-
declare const literaki: {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
"de-DE": Config;
|
|
6
|
-
"en-GB": Config;
|
|
7
|
-
"en-US": Config;
|
|
8
|
-
"es-ES": Config;
|
|
9
|
-
"fa-IR": Config;
|
|
10
|
-
"fr-FR": Config;
|
|
11
|
-
"pl-PL": Config;
|
|
12
|
-
};
|
|
13
|
-
export default literaki;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
const types_1 = require("@scrabble-solver/types");
|
|
7
|
-
const bonuses_1 = __importDefault(require("./bonuses"));
|
|
8
|
-
const tiles_1 = require("./tiles");
|
|
9
|
-
const base = {
|
|
10
|
-
allTilesBonusScore: 50,
|
|
11
|
-
blankScore: 0,
|
|
12
|
-
blanksCount: 2,
|
|
13
|
-
boardHeight: 15,
|
|
14
|
-
boardWidth: 15,
|
|
15
|
-
bonuses: bonuses_1.default,
|
|
16
|
-
id: 'literaki',
|
|
17
|
-
maximumCharactersCount: 7,
|
|
18
|
-
name: 'Literaki',
|
|
19
|
-
};
|
|
20
|
-
const literaki = {
|
|
21
|
-
id: base.id,
|
|
22
|
-
name: base.name,
|
|
23
|
-
[types_1.Locale.DE_DE]: types_1.Config.fromJson({ ...base, locale: types_1.Locale.EN_GB, tiles: tiles_1.tilesDe }),
|
|
24
|
-
[types_1.Locale.EN_GB]: types_1.Config.fromJson({ ...base, locale: types_1.Locale.DE_DE, tiles: tiles_1.tilesEn }),
|
|
25
|
-
[types_1.Locale.EN_US]: types_1.Config.fromJson({ ...base, locale: types_1.Locale.EN_US, tiles: tiles_1.tilesEn }),
|
|
26
|
-
[types_1.Locale.ES_ES]: types_1.Config.fromJson({ ...base, locale: types_1.Locale.ES_ES, tiles: tiles_1.tilesEs }),
|
|
27
|
-
[types_1.Locale.FA_IR]: types_1.Config.fromJson({ ...base, locale: types_1.Locale.FA_IR, tiles: tiles_1.tilesFa }),
|
|
28
|
-
[types_1.Locale.FR_FR]: types_1.Config.fromJson({ ...base, locale: types_1.Locale.FR_FR, tiles: tiles_1.tilesFr }),
|
|
29
|
-
[types_1.Locale.PL_PL]: types_1.Config.fromJson({ ...base, locale: types_1.Locale.PL_PL, tiles: tiles_1.tilesPl }),
|
|
30
|
-
};
|
|
31
|
-
exports.default = literaki;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as tilesEn } from './tilesEn';
|
|
2
|
-
export { default as tilesEs } from './tilesEs';
|
|
3
|
-
export { default as tilesFa } from './tilesFa';
|
|
4
|
-
export { default as tilesFr } from './tilesFr';
|
|
5
|
-
export { default as tilesPl } from './tilesPl';
|
|
6
|
-
export { default as tilesDe } from './tilesDe';
|
|
@@ -1,18 +0,0 @@
|
|
|
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.tilesDe = exports.tilesPl = exports.tilesFr = exports.tilesFa = exports.tilesEs = exports.tilesEn = void 0;
|
|
7
|
-
var tilesEn_1 = require("./tilesEn");
|
|
8
|
-
Object.defineProperty(exports, "tilesEn", { enumerable: true, get: function () { return __importDefault(tilesEn_1).default; } });
|
|
9
|
-
var tilesEs_1 = require("./tilesEs");
|
|
10
|
-
Object.defineProperty(exports, "tilesEs", { enumerable: true, get: function () { return __importDefault(tilesEs_1).default; } });
|
|
11
|
-
var tilesFa_1 = require("./tilesFa");
|
|
12
|
-
Object.defineProperty(exports, "tilesFa", { enumerable: true, get: function () { return __importDefault(tilesFa_1).default; } });
|
|
13
|
-
var tilesFr_1 = require("./tilesFr");
|
|
14
|
-
Object.defineProperty(exports, "tilesFr", { enumerable: true, get: function () { return __importDefault(tilesFr_1).default; } });
|
|
15
|
-
var tilesPl_1 = require("./tilesPl");
|
|
16
|
-
Object.defineProperty(exports, "tilesPl", { enumerable: true, get: function () { return __importDefault(tilesPl_1).default; } });
|
|
17
|
-
var tilesDe_1 = require("./tilesDe");
|
|
18
|
-
Object.defineProperty(exports, "tilesDe", { enumerable: true, get: function () { return __importDefault(tilesDe_1).default; } });
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tilesDe = [
|
|
4
|
-
{ character: 'a', count: 5, score: 1 },
|
|
5
|
-
{ character: 'ä', count: 1, score: 6 },
|
|
6
|
-
{ character: 'b', count: 2, score: 3 },
|
|
7
|
-
{ character: 'c', count: 2, score: 4 },
|
|
8
|
-
{ character: 'd', count: 4, score: 1 },
|
|
9
|
-
{ character: 'e', count: 15, score: 1 },
|
|
10
|
-
{ character: 'f', count: 2, score: 4 },
|
|
11
|
-
{ character: 'g', count: 3, score: 2 },
|
|
12
|
-
{ character: 'h', count: 4, score: 2 },
|
|
13
|
-
{ character: 'i', count: 6, score: 1 },
|
|
14
|
-
{ character: 'j', count: 1, score: 6 },
|
|
15
|
-
{ character: 'k', count: 2, score: 4 },
|
|
16
|
-
{ character: 'l', count: 3, score: 2 },
|
|
17
|
-
{ character: 'm', count: 4, score: 3 },
|
|
18
|
-
{ character: 'n', count: 9, score: 1 },
|
|
19
|
-
{ character: 'o', count: 3, score: 2 },
|
|
20
|
-
{ character: 'ö', count: 1, score: 8 },
|
|
21
|
-
{ character: 'p', count: 1, score: 4 },
|
|
22
|
-
{ character: 'q', count: 1, score: 10 },
|
|
23
|
-
{ character: 'r', count: 6, score: 1 },
|
|
24
|
-
{ character: 's', count: 7, score: 1 },
|
|
25
|
-
{ character: 't', count: 6, score: 1 },
|
|
26
|
-
{ character: 'u', count: 6, score: 1 },
|
|
27
|
-
{ character: 'ü', count: 1, score: 6 },
|
|
28
|
-
{ character: 'v', count: 1, score: 6 },
|
|
29
|
-
{ character: 'w', count: 1, score: 3 },
|
|
30
|
-
{ character: 'x', count: 1, score: 8 },
|
|
31
|
-
{ character: 'y', count: 1, score: 10 },
|
|
32
|
-
{ character: 'z', count: 1, score: 3 },
|
|
33
|
-
];
|
|
34
|
-
exports.default = tilesDe;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tilesEn = [
|
|
4
|
-
{ character: 'a', count: 9, score: 1 },
|
|
5
|
-
{ character: 'b', count: 2, score: 3 },
|
|
6
|
-
{ character: 'c', count: 2, score: 3 },
|
|
7
|
-
{ character: 'd', count: 4, score: 2 },
|
|
8
|
-
{ character: 'e', count: 12, score: 1 },
|
|
9
|
-
{ character: 'f', count: 2, score: 4 },
|
|
10
|
-
{ character: 'g', count: 3, score: 2 },
|
|
11
|
-
{ character: 'h', count: 2, score: 4 },
|
|
12
|
-
{ character: 'i', count: 9, score: 1 },
|
|
13
|
-
{ character: 'j', count: 1, score: 8 },
|
|
14
|
-
{ character: 'k', count: 1, score: 5 },
|
|
15
|
-
{ character: 'l', count: 4, score: 1 },
|
|
16
|
-
{ character: 'm', count: 2, score: 3 },
|
|
17
|
-
{ character: 'n', count: 6, score: 1 },
|
|
18
|
-
{ character: 'o', count: 8, score: 1 },
|
|
19
|
-
{ character: 'p', count: 2, score: 3 },
|
|
20
|
-
{ character: 'q', count: 1, score: 10 },
|
|
21
|
-
{ character: 'r', count: 6, score: 1 },
|
|
22
|
-
{ character: 's', count: 4, score: 1 },
|
|
23
|
-
{ character: 't', count: 6, score: 1 },
|
|
24
|
-
{ character: 'u', count: 4, score: 1 },
|
|
25
|
-
{ character: 'v', count: 2, score: 4 },
|
|
26
|
-
{ character: 'w', count: 2, score: 4 },
|
|
27
|
-
{ character: 'x', count: 1, score: 8 },
|
|
28
|
-
{ character: 'y', count: 2, score: 4 },
|
|
29
|
-
{ character: 'z', count: 1, score: 10 },
|
|
30
|
-
];
|
|
31
|
-
exports.default = tilesEn;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tilesEs = [
|
|
4
|
-
{ character: 'a', count: 12, score: 1 },
|
|
5
|
-
{ character: 'b', count: 2, score: 3 },
|
|
6
|
-
{ character: 'c', count: 4, score: 3 },
|
|
7
|
-
{ character: 'ch', count: 1, score: 5 },
|
|
8
|
-
{ character: 'd', count: 5, score: 2 },
|
|
9
|
-
{ character: 'e', count: 12, score: 1 },
|
|
10
|
-
{ character: 'f', count: 1, score: 4 },
|
|
11
|
-
{ character: 'g', count: 2, score: 2 },
|
|
12
|
-
{ character: 'h', count: 2, score: 4 },
|
|
13
|
-
{ character: 'i', count: 6, score: 1 },
|
|
14
|
-
{ character: 'j', count: 1, score: 8 },
|
|
15
|
-
{ character: 'll', count: 1, score: 8 },
|
|
16
|
-
{ character: 'l', count: 4, score: 1 },
|
|
17
|
-
{ character: 'm', count: 2, score: 3 },
|
|
18
|
-
{ character: 'n', count: 5, score: 1 },
|
|
19
|
-
{ character: 'ñ', count: 1, score: 8 },
|
|
20
|
-
{ character: 'o', count: 9, score: 1 },
|
|
21
|
-
{ character: 'p', count: 2, score: 3 },
|
|
22
|
-
{ character: 'q', count: 1, score: 5 },
|
|
23
|
-
{ character: 'r', count: 5, score: 1 },
|
|
24
|
-
{ character: 'rr', count: 1, score: 8 },
|
|
25
|
-
{ character: 's', count: 6, score: 1 },
|
|
26
|
-
{ character: 't', count: 4, score: 1 },
|
|
27
|
-
{ character: 'u', count: 5, score: 1 },
|
|
28
|
-
{ character: 'v', count: 1, score: 4 },
|
|
29
|
-
{ character: 'x', count: 1, score: 8 },
|
|
30
|
-
{ character: 'y', count: 1, score: 4 },
|
|
31
|
-
{ character: 'z', count: 1, score: 10 },
|
|
32
|
-
];
|
|
33
|
-
exports.default = tilesEs;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tilesFa = [
|
|
4
|
-
{ character: 'ا', count: 12, score: 1 },
|
|
5
|
-
{ character: 'ب', count: 4, score: 1 },
|
|
6
|
-
{ character: 'پ', count: 1, score: 6 },
|
|
7
|
-
{ character: 'ت', count: 4, score: 1 },
|
|
8
|
-
{ character: 'ث', count: 1, score: 10 },
|
|
9
|
-
{ character: 'ج', count: 2, score: 5 },
|
|
10
|
-
{ character: 'چ', count: 1, score: 6 },
|
|
11
|
-
{ character: 'ح', count: 1, score: 6 },
|
|
12
|
-
{ character: 'خ', count: 2, score: 5 },
|
|
13
|
-
{ character: 'د', count: 6, score: 1 },
|
|
14
|
-
{ character: 'ذ', count: 1, score: 10 },
|
|
15
|
-
{ character: 'ر', count: 7, score: 1 },
|
|
16
|
-
{ character: 'ز', count: 3, score: 4 },
|
|
17
|
-
{ character: 'ژ', count: 1, score: 10 },
|
|
18
|
-
{ character: 'س', count: 3, score: 2 },
|
|
19
|
-
{ character: 'ش', count: 3, score: 3 },
|
|
20
|
-
{ character: 'ص', count: 1, score: 6 },
|
|
21
|
-
{ character: 'ض', count: 1, score: 8 },
|
|
22
|
-
{ character: 'ط', count: 1, score: 8 },
|
|
23
|
-
{ character: 'ظ', count: 1, score: 10 },
|
|
24
|
-
{ character: 'ع', count: 2, score: 5 },
|
|
25
|
-
{ character: 'غ', count: 1, score: 8 },
|
|
26
|
-
{ character: 'ف', count: 2, score: 4 },
|
|
27
|
-
{ character: 'ق', count: 2, score: 5 },
|
|
28
|
-
{ character: 'ک', count: 3, score: 3 },
|
|
29
|
-
{ character: 'گ', count: 2, score: 4 },
|
|
30
|
-
{ character: 'ل', count: 3, score: 2 },
|
|
31
|
-
{ character: 'م', count: 5, score: 1 },
|
|
32
|
-
{ character: 'ن', count: 6, score: 1 },
|
|
33
|
-
{ character: 'و', count: 5, score: 1 },
|
|
34
|
-
{ character: 'ه', count: 5, score: 1 },
|
|
35
|
-
{ character: 'ی', count: 8, score: 1 },
|
|
36
|
-
];
|
|
37
|
-
exports.default = tilesFa;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tilesFr = [
|
|
4
|
-
{ character: 'a', count: 9, score: 1 },
|
|
5
|
-
{ character: 'b', count: 2, score: 3 },
|
|
6
|
-
{ character: 'c', count: 2, score: 3 },
|
|
7
|
-
{ character: 'd', count: 3, score: 2 },
|
|
8
|
-
{ character: 'e', count: 15, score: 1 },
|
|
9
|
-
{ character: 'f', count: 2, score: 1 },
|
|
10
|
-
{ character: 'g', count: 2, score: 2 },
|
|
11
|
-
{ character: 'h', count: 2, score: 4 },
|
|
12
|
-
{ character: 'i', count: 8, score: 1 },
|
|
13
|
-
{ character: 'j', count: 1, score: 8 },
|
|
14
|
-
{ character: 'k', count: 1, score: 10 },
|
|
15
|
-
{ character: 'l', count: 5, score: 1 },
|
|
16
|
-
{ character: 'm', count: 3, score: 2 },
|
|
17
|
-
{ character: 'n', count: 6, score: 1 },
|
|
18
|
-
{ character: 'o', count: 6, score: 1 },
|
|
19
|
-
{ character: 'p', count: 2, score: 3 },
|
|
20
|
-
{ character: 'q', count: 1, score: 8 },
|
|
21
|
-
{ character: 'r', count: 6, score: 1 },
|
|
22
|
-
{ character: 's', count: 6, score: 1 },
|
|
23
|
-
{ character: 't', count: 6, score: 1 },
|
|
24
|
-
{ character: 'u', count: 6, score: 1 },
|
|
25
|
-
{ character: 'v', count: 2, score: 4 },
|
|
26
|
-
{ character: 'w', count: 1, score: 10 },
|
|
27
|
-
{ character: 'x', count: 1, score: 10 },
|
|
28
|
-
{ character: 'y', count: 1, score: 10 },
|
|
29
|
-
{ character: 'z', count: 1, score: 10 },
|
|
30
|
-
];
|
|
31
|
-
exports.default = tilesFr;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tilesPl = [
|
|
4
|
-
{ character: 'a', count: 9, score: 1 },
|
|
5
|
-
{ character: 'ą', count: 1, score: 5 },
|
|
6
|
-
{ character: 'b', count: 2, score: 3 },
|
|
7
|
-
{ character: 'c', count: 3, score: 2 },
|
|
8
|
-
{ character: 'ć', count: 1, score: 5 },
|
|
9
|
-
{ character: 'd', count: 3, score: 2 },
|
|
10
|
-
{ character: 'e', count: 7, score: 1 },
|
|
11
|
-
{ character: 'ę', count: 1, score: 5 },
|
|
12
|
-
{ character: 'f', count: 1, score: 5 },
|
|
13
|
-
{ character: 'g', count: 2, score: 3 },
|
|
14
|
-
{ character: 'h', count: 2, score: 3 },
|
|
15
|
-
{ character: 'i', count: 8, score: 1 },
|
|
16
|
-
{ character: 'j', count: 2, score: 3 },
|
|
17
|
-
{ character: 'k', count: 3, score: 2 },
|
|
18
|
-
{ character: 'l', count: 3, score: 2 },
|
|
19
|
-
{ character: 'ł', count: 2, score: 3 },
|
|
20
|
-
{ character: 'm', count: 3, score: 2 },
|
|
21
|
-
{ character: 'n', count: 5, score: 1 },
|
|
22
|
-
{ character: 'ń', count: 1, score: 5 },
|
|
23
|
-
{ character: 'o', count: 6, score: 1 },
|
|
24
|
-
{ character: 'ó', count: 1, score: 5 },
|
|
25
|
-
{ character: 'p', count: 3, score: 2 },
|
|
26
|
-
{ character: 'r', count: 4, score: 1 },
|
|
27
|
-
{ character: 's', count: 4, score: 1 },
|
|
28
|
-
{ character: 'ś', count: 1, score: 5 },
|
|
29
|
-
{ character: 't', count: 3, score: 2 },
|
|
30
|
-
{ character: 'u', count: 2, score: 3 },
|
|
31
|
-
{ character: 'w', count: 4, score: 1 },
|
|
32
|
-
{ character: 'y', count: 4, score: 2 },
|
|
33
|
-
{ character: 'z', count: 5, score: 1 },
|
|
34
|
-
{ character: 'ź', count: 1, score: 5 },
|
|
35
|
-
{ character: 'ż', count: 1, score: 5 },
|
|
36
|
-
];
|
|
37
|
-
exports.default = tilesPl;
|