@scrabble-solver/configs 2.13.13 → 2.15.0
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 +4 -3
- package/build/games/index.js +17 -9
- package/build/games/kelimelik.d.ts +16 -0
- package/build/games/kelimelik.js +64 -0
- package/build/games/literaki.d.ts +1 -2
- package/build/games/literaki.js +2 -2
- package/build/games/scrabble.d.ts +1 -2
- package/build/games/scrabble.js +2 -2
- package/build/games/superScrabble.d.ts +1 -2
- package/build/games/superScrabble.js +2 -2
- package/build/languages/index.d.ts +1 -0
- package/build/languages/index.js +1 -0
- package/build/languages/turkish.d.ts +3 -0
- package/build/languages/turkish.js +75 -0
- package/package.json +4 -4
- package/src/games/index.ts +4 -3
- package/src/games/kelimelik.ts +62 -0
- package/src/games/literaki.ts +1 -3
- package/src/games/scrabble.ts +1 -3
- package/src/games/superScrabble.ts +1 -3
- package/src/languages/index.ts +1 -0
- package/src/languages/turkish.ts +75 -0
package/build/games/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './kelimelik';
|
|
2
|
+
export * from './literaki';
|
|
3
|
+
export * from './scrabble';
|
|
4
|
+
export * from './superScrabble';
|
package/build/games/index.js
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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; } });
|
|
17
|
+
__exportStar(require("./kelimelik"), exports);
|
|
18
|
+
__exportStar(require("./literaki"), exports);
|
|
19
|
+
__exportStar(require("./scrabble"), exports);
|
|
20
|
+
__exportStar(require("./superScrabble"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Game } from '@scrabble-solver/types';
|
|
2
|
+
export declare const kelimelik: {
|
|
3
|
+
bingoScore: number;
|
|
4
|
+
blankScore: number;
|
|
5
|
+
blanksCount: number;
|
|
6
|
+
boardSize: number;
|
|
7
|
+
game: Game;
|
|
8
|
+
name: string;
|
|
9
|
+
rackSize: number;
|
|
10
|
+
bonuses: {
|
|
11
|
+
multiplier: number;
|
|
12
|
+
type: string;
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.kelimelik = void 0;
|
|
4
|
+
const constants_1 = require("@scrabble-solver/constants");
|
|
5
|
+
const types_1 = require("@scrabble-solver/types");
|
|
6
|
+
exports.kelimelik = {
|
|
7
|
+
bingoScore: 30,
|
|
8
|
+
blankScore: 0,
|
|
9
|
+
blanksCount: 2,
|
|
10
|
+
boardSize: 15,
|
|
11
|
+
game: types_1.Game.Kelimelik,
|
|
12
|
+
name: 'Kelimelik',
|
|
13
|
+
rackSize: 7,
|
|
14
|
+
bonuses: [
|
|
15
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 2, y: 0 },
|
|
16
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 0 },
|
|
17
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 0 },
|
|
18
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 12, y: 0 },
|
|
19
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 1, y: 1 },
|
|
20
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 1 },
|
|
21
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 1 },
|
|
22
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 13, y: 1 },
|
|
23
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 2 },
|
|
24
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 7, y: 2 },
|
|
25
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 2 },
|
|
26
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 3 },
|
|
27
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 3 },
|
|
28
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 4, y: 4 },
|
|
29
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 10, y: 4 },
|
|
30
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 5 },
|
|
31
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 5 },
|
|
32
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 5 },
|
|
33
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 5 },
|
|
34
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 6 },
|
|
35
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 6 },
|
|
36
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 6 },
|
|
37
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 6 },
|
|
38
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 7 },
|
|
39
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 12, y: 7 },
|
|
40
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 8 },
|
|
41
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 8 },
|
|
42
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 8 },
|
|
43
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 8 },
|
|
44
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 9 },
|
|
45
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 9 },
|
|
46
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 9 },
|
|
47
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 9 },
|
|
48
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 4, y: 10 },
|
|
49
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 10, y: 10 },
|
|
50
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 11 },
|
|
51
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 11 },
|
|
52
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 12 },
|
|
53
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 7, y: 12 },
|
|
54
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 12 },
|
|
55
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 1, y: 13 },
|
|
56
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 13 },
|
|
57
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 13 },
|
|
58
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 13, y: 13 },
|
|
59
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 2, y: 14 },
|
|
60
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 14 },
|
|
61
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 14 },
|
|
62
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 12, y: 14 },
|
|
63
|
+
],
|
|
64
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Game } from '@scrabble-solver/types';
|
|
2
|
-
declare const literaki: {
|
|
2
|
+
export declare const literaki: {
|
|
3
3
|
bingoScore: number;
|
|
4
4
|
blankScore: number;
|
|
5
5
|
blanksCount: number;
|
|
@@ -21,4 +21,3 @@ declare const literaki: {
|
|
|
21
21
|
score?: undefined;
|
|
22
22
|
})[];
|
|
23
23
|
};
|
|
24
|
-
export default literaki;
|
package/build/games/literaki.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.literaki = void 0;
|
|
3
4
|
const constants_1 = require("@scrabble-solver/constants");
|
|
4
5
|
const types_1 = require("@scrabble-solver/types");
|
|
5
|
-
|
|
6
|
+
exports.literaki = {
|
|
6
7
|
bingoScore: 50,
|
|
7
8
|
blankScore: 0,
|
|
8
9
|
blanksCount: 2,
|
|
@@ -106,4 +107,3 @@ const literaki = {
|
|
|
106
107
|
{ multiplier: 3, score: 5, type: constants_1.BONUS_CHARACTER, x: 14, y: 14 },
|
|
107
108
|
],
|
|
108
109
|
};
|
|
109
|
-
exports.default = literaki;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Game } from '@scrabble-solver/types';
|
|
2
|
-
declare const scrabble: {
|
|
2
|
+
export declare const scrabble: {
|
|
3
3
|
bingoScore: number;
|
|
4
4
|
blankScore: number;
|
|
5
5
|
blanksCount: number;
|
|
@@ -14,4 +14,3 @@ declare const scrabble: {
|
|
|
14
14
|
y: number;
|
|
15
15
|
}[];
|
|
16
16
|
};
|
|
17
|
-
export default scrabble;
|
package/build/games/scrabble.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scrabble = void 0;
|
|
3
4
|
const constants_1 = require("@scrabble-solver/constants");
|
|
4
5
|
const types_1 = require("@scrabble-solver/types");
|
|
5
|
-
|
|
6
|
+
exports.scrabble = {
|
|
6
7
|
bingoScore: 50,
|
|
7
8
|
blankScore: 0,
|
|
8
9
|
blanksCount: 2,
|
|
@@ -74,4 +75,3 @@ const scrabble = {
|
|
|
74
75
|
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 14, y: 14 },
|
|
75
76
|
],
|
|
76
77
|
};
|
|
77
|
-
exports.default = scrabble;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Game } from '@scrabble-solver/types';
|
|
2
|
-
declare const superScrabble: {
|
|
2
|
+
export declare const superScrabble: {
|
|
3
3
|
bingoScore: number;
|
|
4
4
|
blankScore: number;
|
|
5
5
|
blanksCount: number;
|
|
@@ -14,4 +14,3 @@ declare const superScrabble: {
|
|
|
14
14
|
y: number;
|
|
15
15
|
}[];
|
|
16
16
|
};
|
|
17
|
-
export default superScrabble;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.superScrabble = void 0;
|
|
3
4
|
const constants_1 = require("@scrabble-solver/constants");
|
|
4
5
|
const types_1 = require("@scrabble-solver/types");
|
|
5
|
-
|
|
6
|
+
exports.superScrabble = {
|
|
6
7
|
bingoScore: 50,
|
|
7
8
|
blankScore: 0,
|
|
8
9
|
blanksCount: 4,
|
|
@@ -137,4 +138,3 @@ const superScrabble = {
|
|
|
137
138
|
{ multiplier: 4, type: constants_1.BONUS_WORD, x: 20, y: 20 },
|
|
138
139
|
],
|
|
139
140
|
};
|
|
140
|
-
exports.default = superScrabble;
|
package/build/languages/index.js
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.turkishScrabble = exports.turkishKelimelik = void 0;
|
|
4
|
+
const types_1 = require("@scrabble-solver/types");
|
|
5
|
+
const games_1 = require("../games");
|
|
6
|
+
exports.turkishKelimelik = new types_1.Config({
|
|
7
|
+
...games_1.kelimelik,
|
|
8
|
+
locale: types_1.Locale.TR_TR,
|
|
9
|
+
tiles: [
|
|
10
|
+
{ character: 'a', count: 12, score: 1 },
|
|
11
|
+
{ character: 'b', count: 2, score: 3 },
|
|
12
|
+
{ character: 'c', count: 2, score: 4 },
|
|
13
|
+
{ character: 'ç', count: 2, score: 4 },
|
|
14
|
+
{ character: 'd', count: 2, score: 3 },
|
|
15
|
+
{ character: 'e', count: 8, score: 1 },
|
|
16
|
+
{ character: 'f', count: 1, score: 7 },
|
|
17
|
+
{ character: 'g', count: 1, score: 5 },
|
|
18
|
+
{ character: 'ğ', count: 1, score: 8 },
|
|
19
|
+
{ character: 'h', count: 1, score: 5 },
|
|
20
|
+
{ character: 'ı', count: 4, score: 2 },
|
|
21
|
+
{ character: 'i', count: 7, score: 1 },
|
|
22
|
+
{ character: 'j', count: 1, score: 10 },
|
|
23
|
+
{ character: 'k', count: 7, score: 1 },
|
|
24
|
+
{ character: 'l', count: 7, score: 1 },
|
|
25
|
+
{ character: 'm', count: 4, score: 2 },
|
|
26
|
+
{ character: 'n', count: 5, score: 1 },
|
|
27
|
+
{ character: 'o', count: 3, score: 2 },
|
|
28
|
+
{ character: 'ö', count: 1, score: 7 },
|
|
29
|
+
{ character: 'p', count: 1, score: 5 },
|
|
30
|
+
{ character: 'r', count: 6, score: 1 },
|
|
31
|
+
{ character: 's', count: 3, score: 2 },
|
|
32
|
+
{ character: 'ş', count: 2, score: 4 },
|
|
33
|
+
{ character: 't', count: 5, score: 1 },
|
|
34
|
+
{ character: 'u', count: 3, score: 2 },
|
|
35
|
+
{ character: 'ü', count: 2, score: 3 },
|
|
36
|
+
{ character: 'v', count: 1, score: 7 },
|
|
37
|
+
{ character: 'y', count: 2, score: 3 },
|
|
38
|
+
{ character: 'z', count: 2, score: 4 },
|
|
39
|
+
],
|
|
40
|
+
});
|
|
41
|
+
exports.turkishScrabble = new types_1.Config({
|
|
42
|
+
...games_1.scrabble,
|
|
43
|
+
locale: types_1.Locale.TR_TR,
|
|
44
|
+
tiles: [
|
|
45
|
+
{ character: 'a', count: 12, score: 1 },
|
|
46
|
+
{ character: 'b', count: 2, score: 3 },
|
|
47
|
+
{ character: 'c', count: 2, score: 4 },
|
|
48
|
+
{ character: 'ç', count: 2, score: 4 },
|
|
49
|
+
{ character: 'd', count: 2, score: 3 },
|
|
50
|
+
{ character: 'e', count: 8, score: 1 },
|
|
51
|
+
{ character: 'f', count: 1, score: 7 },
|
|
52
|
+
{ character: 'g', count: 1, score: 5 },
|
|
53
|
+
{ character: 'ğ', count: 1, score: 8 },
|
|
54
|
+
{ character: 'h', count: 1, score: 5 },
|
|
55
|
+
{ character: 'ı', count: 4, score: 2 },
|
|
56
|
+
{ character: 'i', count: 7, score: 1 },
|
|
57
|
+
{ character: 'j', count: 1, score: 10 },
|
|
58
|
+
{ character: 'k', count: 7, score: 1 },
|
|
59
|
+
{ character: 'l', count: 7, score: 1 },
|
|
60
|
+
{ character: 'm', count: 4, score: 2 },
|
|
61
|
+
{ character: 'n', count: 5, score: 1 },
|
|
62
|
+
{ character: 'o', count: 3, score: 2 },
|
|
63
|
+
{ character: 'ö', count: 1, score: 7 },
|
|
64
|
+
{ character: 'p', count: 1, score: 5 },
|
|
65
|
+
{ character: 'r', count: 6, score: 1 },
|
|
66
|
+
{ character: 's', count: 3, score: 2 },
|
|
67
|
+
{ character: 'ş', count: 2, score: 4 },
|
|
68
|
+
{ character: 't', count: 5, score: 1 },
|
|
69
|
+
{ character: 'u', count: 3, score: 2 },
|
|
70
|
+
{ character: 'ü', count: 2, score: 3 },
|
|
71
|
+
{ character: 'v', count: 1, score: 7 },
|
|
72
|
+
{ character: 'y', count: 2, score: 3 },
|
|
73
|
+
{ character: 'z', count: 2, score: 4 },
|
|
74
|
+
],
|
|
75
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/configs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Scrabble Solver 2 - Configs",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/constants": "^2.
|
|
27
|
-
"@scrabble-solver/types": "^2.
|
|
26
|
+
"@scrabble-solver/constants": "^2.15.0",
|
|
27
|
+
"@scrabble-solver/types": "^2.15.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4c23b3525f7cb2b1fae4ec0d9271cffab810f7d3"
|
|
30
30
|
}
|
package/src/games/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './kelimelik';
|
|
2
|
+
export * from './literaki';
|
|
3
|
+
export * from './scrabble';
|
|
4
|
+
export * from './superScrabble';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
2
|
+
import { Game } from '@scrabble-solver/types';
|
|
3
|
+
|
|
4
|
+
export const kelimelik = {
|
|
5
|
+
bingoScore: 30,
|
|
6
|
+
blankScore: 0,
|
|
7
|
+
blanksCount: 2,
|
|
8
|
+
boardSize: 15,
|
|
9
|
+
game: Game.Kelimelik,
|
|
10
|
+
name: 'Kelimelik',
|
|
11
|
+
rackSize: 7,
|
|
12
|
+
bonuses: [
|
|
13
|
+
{ multiplier: 3, type: BONUS_WORD, x: 2, y: 0 },
|
|
14
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 5, y: 0 },
|
|
15
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 9, y: 0 },
|
|
16
|
+
{ multiplier: 3, type: BONUS_WORD, x: 12, y: 0 },
|
|
17
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 1, y: 1 },
|
|
18
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 1 },
|
|
19
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 1 },
|
|
20
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 13, y: 1 },
|
|
21
|
+
{ multiplier: 3, type: BONUS_WORD, x: 0, y: 2 },
|
|
22
|
+
{ multiplier: 2, type: BONUS_WORD, x: 7, y: 2 },
|
|
23
|
+
{ multiplier: 3, type: BONUS_WORD, x: 14, y: 2 },
|
|
24
|
+
{ multiplier: 2, type: BONUS_WORD, x: 3, y: 3 },
|
|
25
|
+
{ multiplier: 2, type: BONUS_WORD, x: 11, y: 3 },
|
|
26
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 4, y: 4 },
|
|
27
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 10, y: 4 },
|
|
28
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 5 },
|
|
29
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 5, y: 5 },
|
|
30
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 9, y: 5 },
|
|
31
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 14, y: 5 },
|
|
32
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 1, y: 6 },
|
|
33
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 6 },
|
|
34
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 6 },
|
|
35
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 13, y: 6 },
|
|
36
|
+
{ multiplier: 2, type: BONUS_WORD, x: 2, y: 7 },
|
|
37
|
+
{ multiplier: 2, type: BONUS_WORD, x: 12, y: 7 },
|
|
38
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 1, y: 8 },
|
|
39
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 8 },
|
|
40
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 8 },
|
|
41
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 13, y: 8 },
|
|
42
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 9 },
|
|
43
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 5, y: 9 },
|
|
44
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 9, y: 9 },
|
|
45
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 14, y: 9 },
|
|
46
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 4, y: 10 },
|
|
47
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 10, y: 10 },
|
|
48
|
+
{ multiplier: 2, type: BONUS_WORD, x: 3, y: 11 },
|
|
49
|
+
{ multiplier: 2, type: BONUS_WORD, x: 11, y: 11 },
|
|
50
|
+
{ multiplier: 3, type: BONUS_WORD, x: 0, y: 12 },
|
|
51
|
+
{ multiplier: 2, type: BONUS_WORD, x: 7, y: 12 },
|
|
52
|
+
{ multiplier: 3, type: BONUS_WORD, x: 14, y: 12 },
|
|
53
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 1, y: 13 },
|
|
54
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 13 },
|
|
55
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 13 },
|
|
56
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 13, y: 13 },
|
|
57
|
+
{ multiplier: 3, type: BONUS_WORD, x: 2, y: 14 },
|
|
58
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 5, y: 14 },
|
|
59
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 9, y: 14 },
|
|
60
|
+
{ multiplier: 3, type: BONUS_WORD, x: 12, y: 14 },
|
|
61
|
+
],
|
|
62
|
+
};
|
package/src/games/literaki.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
2
2
|
import { Game } from '@scrabble-solver/types';
|
|
3
3
|
|
|
4
|
-
const literaki = {
|
|
4
|
+
export const literaki = {
|
|
5
5
|
bingoScore: 50,
|
|
6
6
|
blankScore: 0,
|
|
7
7
|
blanksCount: 2,
|
|
@@ -105,5 +105,3 @@ const literaki = {
|
|
|
105
105
|
{ multiplier: 3, score: 5, type: BONUS_CHARACTER, x: 14, y: 14 },
|
|
106
106
|
],
|
|
107
107
|
};
|
|
108
|
-
|
|
109
|
-
export default literaki;
|
package/src/games/scrabble.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
2
2
|
import { Game } from '@scrabble-solver/types';
|
|
3
3
|
|
|
4
|
-
const scrabble = {
|
|
4
|
+
export const scrabble = {
|
|
5
5
|
bingoScore: 50,
|
|
6
6
|
blankScore: 0,
|
|
7
7
|
blanksCount: 2,
|
|
@@ -73,5 +73,3 @@ const scrabble = {
|
|
|
73
73
|
{ multiplier: 3, type: BONUS_WORD, x: 14, y: 14 },
|
|
74
74
|
],
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
export default scrabble;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
2
2
|
import { Game } from '@scrabble-solver/types';
|
|
3
3
|
|
|
4
|
-
const superScrabble = {
|
|
4
|
+
export const superScrabble = {
|
|
5
5
|
bingoScore: 50,
|
|
6
6
|
blankScore: 0,
|
|
7
7
|
blanksCount: 4,
|
|
@@ -136,5 +136,3 @@ const superScrabble = {
|
|
|
136
136
|
{ multiplier: 4, type: BONUS_WORD, x: 20, y: 20 },
|
|
137
137
|
],
|
|
138
138
|
};
|
|
139
|
-
|
|
140
|
-
export default superScrabble;
|
package/src/languages/index.ts
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Config, Locale } from '@scrabble-solver/types';
|
|
2
|
+
|
|
3
|
+
import { kelimelik, scrabble } from '../games';
|
|
4
|
+
|
|
5
|
+
export const turkishKelimelik = new Config({
|
|
6
|
+
...kelimelik,
|
|
7
|
+
locale: Locale.TR_TR,
|
|
8
|
+
tiles: [
|
|
9
|
+
{ character: 'a', count: 12, score: 1 },
|
|
10
|
+
{ character: 'b', count: 2, score: 3 },
|
|
11
|
+
{ character: 'c', count: 2, score: 4 },
|
|
12
|
+
{ character: 'ç', count: 2, score: 4 },
|
|
13
|
+
{ character: 'd', count: 2, score: 3 },
|
|
14
|
+
{ character: 'e', count: 8, score: 1 },
|
|
15
|
+
{ character: 'f', count: 1, score: 7 },
|
|
16
|
+
{ character: 'g', count: 1, score: 5 },
|
|
17
|
+
{ character: 'ğ', count: 1, score: 8 },
|
|
18
|
+
{ character: 'h', count: 1, score: 5 },
|
|
19
|
+
{ character: 'ı', count: 4, score: 2 },
|
|
20
|
+
{ character: 'i', count: 7, score: 1 },
|
|
21
|
+
{ character: 'j', count: 1, score: 10 },
|
|
22
|
+
{ character: 'k', count: 7, score: 1 },
|
|
23
|
+
{ character: 'l', count: 7, score: 1 },
|
|
24
|
+
{ character: 'm', count: 4, score: 2 },
|
|
25
|
+
{ character: 'n', count: 5, score: 1 },
|
|
26
|
+
{ character: 'o', count: 3, score: 2 },
|
|
27
|
+
{ character: 'ö', count: 1, score: 7 },
|
|
28
|
+
{ character: 'p', count: 1, score: 5 },
|
|
29
|
+
{ character: 'r', count: 6, score: 1 },
|
|
30
|
+
{ character: 's', count: 3, score: 2 },
|
|
31
|
+
{ character: 'ş', count: 2, score: 4 },
|
|
32
|
+
{ character: 't', count: 5, score: 1 },
|
|
33
|
+
{ character: 'u', count: 3, score: 2 },
|
|
34
|
+
{ character: 'ü', count: 2, score: 3 },
|
|
35
|
+
{ character: 'v', count: 1, score: 7 },
|
|
36
|
+
{ character: 'y', count: 2, score: 3 },
|
|
37
|
+
{ character: 'z', count: 2, score: 4 },
|
|
38
|
+
],
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const turkishScrabble = new Config({
|
|
42
|
+
...scrabble,
|
|
43
|
+
locale: Locale.TR_TR,
|
|
44
|
+
tiles: [
|
|
45
|
+
{ character: 'a', count: 12, score: 1 },
|
|
46
|
+
{ character: 'b', count: 2, score: 3 },
|
|
47
|
+
{ character: 'c', count: 2, score: 4 },
|
|
48
|
+
{ character: 'ç', count: 2, score: 4 },
|
|
49
|
+
{ character: 'd', count: 2, score: 3 },
|
|
50
|
+
{ character: 'e', count: 8, score: 1 },
|
|
51
|
+
{ character: 'f', count: 1, score: 7 },
|
|
52
|
+
{ character: 'g', count: 1, score: 5 },
|
|
53
|
+
{ character: 'ğ', count: 1, score: 8 },
|
|
54
|
+
{ character: 'h', count: 1, score: 5 },
|
|
55
|
+
{ character: 'ı', count: 4, score: 2 },
|
|
56
|
+
{ character: 'i', count: 7, score: 1 },
|
|
57
|
+
{ character: 'j', count: 1, score: 10 },
|
|
58
|
+
{ character: 'k', count: 7, score: 1 },
|
|
59
|
+
{ character: 'l', count: 7, score: 1 },
|
|
60
|
+
{ character: 'm', count: 4, score: 2 },
|
|
61
|
+
{ character: 'n', count: 5, score: 1 },
|
|
62
|
+
{ character: 'o', count: 3, score: 2 },
|
|
63
|
+
{ character: 'ö', count: 1, score: 7 },
|
|
64
|
+
{ character: 'p', count: 1, score: 5 },
|
|
65
|
+
{ character: 'r', count: 6, score: 1 },
|
|
66
|
+
{ character: 's', count: 3, score: 2 },
|
|
67
|
+
{ character: 'ş', count: 2, score: 4 },
|
|
68
|
+
{ character: 't', count: 5, score: 1 },
|
|
69
|
+
{ character: 'u', count: 3, score: 2 },
|
|
70
|
+
{ character: 'ü', count: 2, score: 3 },
|
|
71
|
+
{ character: 'v', count: 1, score: 7 },
|
|
72
|
+
{ character: 'y', count: 2, score: 3 },
|
|
73
|
+
{ character: 'z', count: 2, score: 4 },
|
|
74
|
+
],
|
|
75
|
+
});
|