@scrabble-solver/configs 2.15.9 → 2.15.11
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 +2 -0
- package/build/games/index.js +2 -0
- package/build/games/kelimelik.d.ts +5 -2
- package/build/games/kelimelik.js +3 -2
- package/build/games/letterLeague.d.ts +19 -0
- package/build/games/letterLeague.js +161 -0
- package/build/games/literaki.d.ts +5 -2
- package/build/games/literaki.js +3 -2
- package/build/games/scrabble.d.ts +5 -2
- package/build/games/scrabble.js +3 -2
- package/build/games/scrabbleDuel.d.ts +19 -0
- package/build/games/scrabbleDuel.js +50 -0
- package/build/games/superScrabble.d.ts +5 -2
- package/build/games/superScrabble.js +3 -2
- package/build/languages/english.d.ts +6 -2
- package/build/languages/english.js +164 -36
- package/package.json +4 -4
- package/src/games/index.ts +2 -0
- package/src/games/kelimelik.ts +3 -2
- package/src/games/letterLeague.ts +177 -0
- package/src/games/literaki.ts +3 -2
- package/src/games/scrabble.ts +3 -2
- package/src/games/scrabbleDuel.ts +56 -0
- package/src/games/superScrabble.ts +3 -2
- package/src/languages/english.ts +169 -37
package/build/games/index.d.ts
CHANGED
package/build/games/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./kelimelik"), exports);
|
|
18
|
+
__exportStar(require("./letterLeague"), exports);
|
|
18
19
|
__exportStar(require("./literaki"), exports);
|
|
19
20
|
__exportStar(require("./scrabble"), exports);
|
|
21
|
+
__exportStar(require("./scrabbleDuel"), exports);
|
|
20
22
|
__exportStar(require("./superScrabble"), exports);
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Game } from '@scrabble-solver/types';
|
|
2
2
|
export declare const kelimelik: {
|
|
3
|
-
|
|
3
|
+
bingo: {
|
|
4
|
+
score: number;
|
|
5
|
+
};
|
|
4
6
|
blankScore: number;
|
|
5
7
|
blanksCount: number;
|
|
6
|
-
|
|
8
|
+
boardHeight: number;
|
|
9
|
+
boardWidth: number;
|
|
7
10
|
game: Game;
|
|
8
11
|
name: string;
|
|
9
12
|
rackSize: number;
|
package/build/games/kelimelik.js
CHANGED
|
@@ -4,10 +4,11 @@ exports.kelimelik = void 0;
|
|
|
4
4
|
const constants_1 = require("@scrabble-solver/constants");
|
|
5
5
|
const types_1 = require("@scrabble-solver/types");
|
|
6
6
|
exports.kelimelik = {
|
|
7
|
-
|
|
7
|
+
bingo: { score: 30 },
|
|
8
8
|
blankScore: 0,
|
|
9
9
|
blanksCount: 2,
|
|
10
|
-
|
|
10
|
+
boardHeight: 15,
|
|
11
|
+
boardWidth: 15,
|
|
11
12
|
game: types_1.Game.Kelimelik,
|
|
12
13
|
name: 'Kelimelik',
|
|
13
14
|
rackSize: 7,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Game } from '@scrabble-solver/types';
|
|
2
|
+
export declare const letterLeague: {
|
|
3
|
+
bingo: {
|
|
4
|
+
multiplier: number;
|
|
5
|
+
};
|
|
6
|
+
blankScore: number;
|
|
7
|
+
blanksCount: number;
|
|
8
|
+
boardHeight: number;
|
|
9
|
+
boardWidth: number;
|
|
10
|
+
game: Game;
|
|
11
|
+
name: string;
|
|
12
|
+
rackSize: number;
|
|
13
|
+
bonuses: {
|
|
14
|
+
multiplier: number;
|
|
15
|
+
type: string;
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.letterLeague = void 0;
|
|
4
|
+
const constants_1 = require("@scrabble-solver/constants");
|
|
5
|
+
const types_1 = require("@scrabble-solver/types");
|
|
6
|
+
exports.letterLeague = {
|
|
7
|
+
bingo: { multiplier: 2 },
|
|
8
|
+
blankScore: 0,
|
|
9
|
+
blanksCount: 2,
|
|
10
|
+
boardHeight: 19,
|
|
11
|
+
boardWidth: 27,
|
|
12
|
+
game: types_1.Game.LetterLeague,
|
|
13
|
+
name: 'Letter League',
|
|
14
|
+
rackSize: 7,
|
|
15
|
+
bonuses: [
|
|
16
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 0 },
|
|
17
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 0 },
|
|
18
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 0 },
|
|
19
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 0 },
|
|
20
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 15, y: 0 },
|
|
21
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 18, y: 0 },
|
|
22
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 20, y: 0 },
|
|
23
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 23, y: 0 },
|
|
24
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 1 },
|
|
25
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 1 },
|
|
26
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 1 },
|
|
27
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 1 },
|
|
28
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 17, y: 1 },
|
|
29
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 21, y: 1 },
|
|
30
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 25, y: 1 },
|
|
31
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 2 },
|
|
32
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 2 },
|
|
33
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 2 },
|
|
34
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 2 },
|
|
35
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 16, y: 2 },
|
|
36
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 18, y: 2 },
|
|
37
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 20, y: 2 },
|
|
38
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 22, y: 2 },
|
|
39
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 3 },
|
|
40
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 3 },
|
|
41
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 3 },
|
|
42
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 7, y: 3 },
|
|
43
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 3 },
|
|
44
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 13, y: 3 },
|
|
45
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 3 },
|
|
46
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 19, y: 3 },
|
|
47
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 24, y: 3 },
|
|
48
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 25, y: 3 },
|
|
49
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 26, y: 3 },
|
|
50
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 4 },
|
|
51
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 4 },
|
|
52
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 4 },
|
|
53
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 4 },
|
|
54
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 16, y: 4 },
|
|
55
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 18, y: 4 },
|
|
56
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 20, y: 4 },
|
|
57
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 22, y: 4 },
|
|
58
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 5 },
|
|
59
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 5 },
|
|
60
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 5 },
|
|
61
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 5 },
|
|
62
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 17, y: 5 },
|
|
63
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 21, y: 5 },
|
|
64
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 25, y: 5 },
|
|
65
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 6 },
|
|
66
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 6 },
|
|
67
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 6 },
|
|
68
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 6 },
|
|
69
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 15, y: 6 },
|
|
70
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 18, y: 6 },
|
|
71
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 20, y: 6 },
|
|
72
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 23, y: 6 },
|
|
73
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 7 },
|
|
74
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 7 },
|
|
75
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 16, y: 7 },
|
|
76
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 22, y: 7 },
|
|
77
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 0, y: 8 },
|
|
78
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 2, y: 8 },
|
|
79
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 7, y: 8 },
|
|
80
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 12, y: 8 },
|
|
81
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 14, y: 8 },
|
|
82
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 19, y: 8 },
|
|
83
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 24, y: 8 },
|
|
84
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 26, y: 8 },
|
|
85
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 3, y: 9 },
|
|
86
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 7, y: 9 },
|
|
87
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 11, y: 9 },
|
|
88
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 15, y: 9 },
|
|
89
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 19, y: 9 },
|
|
90
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 23, y: 9 },
|
|
91
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 0, y: 10 },
|
|
92
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 2, y: 10 },
|
|
93
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 7, y: 10 },
|
|
94
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 12, y: 10 },
|
|
95
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 14, y: 10 },
|
|
96
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 19, y: 10 },
|
|
97
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 24, y: 10 },
|
|
98
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 26, y: 10 },
|
|
99
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 4, y: 11 },
|
|
100
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 10, y: 11 },
|
|
101
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 16, y: 11 },
|
|
102
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 22, y: 11 },
|
|
103
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 12 },
|
|
104
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 12 },
|
|
105
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 12 },
|
|
106
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 12 },
|
|
107
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 15, y: 12 },
|
|
108
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 18, y: 12 },
|
|
109
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 20, y: 12 },
|
|
110
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 23, y: 12 },
|
|
111
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 13 },
|
|
112
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 13 },
|
|
113
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 13 },
|
|
114
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 13 },
|
|
115
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 17, y: 13 },
|
|
116
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 21, y: 13 },
|
|
117
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 25, y: 13 },
|
|
118
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 14 },
|
|
119
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 14 },
|
|
120
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 14 },
|
|
121
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 14 },
|
|
122
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 16, y: 14 },
|
|
123
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 18, y: 14 },
|
|
124
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 20, y: 14 },
|
|
125
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 22, y: 14 },
|
|
126
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 15 },
|
|
127
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 15 },
|
|
128
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 2, y: 15 },
|
|
129
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 7, y: 15 },
|
|
130
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 12, y: 15 },
|
|
131
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 13, y: 15 },
|
|
132
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 14, y: 15 },
|
|
133
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 19, y: 15 },
|
|
134
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 24, y: 15 },
|
|
135
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 25, y: 15 },
|
|
136
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 26, y: 15 },
|
|
137
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 16 },
|
|
138
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 6, y: 16 },
|
|
139
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 8, y: 16 },
|
|
140
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 16 },
|
|
141
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 16, y: 16 },
|
|
142
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 18, y: 16 },
|
|
143
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 20, y: 16 },
|
|
144
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 22, y: 16 },
|
|
145
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 17 },
|
|
146
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 17 },
|
|
147
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 17 },
|
|
148
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 13, y: 17 },
|
|
149
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 17, y: 17 },
|
|
150
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 21, y: 17 },
|
|
151
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 25, y: 17 },
|
|
152
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 3, y: 18 },
|
|
153
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 18 },
|
|
154
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 8, y: 18 },
|
|
155
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 11, y: 18 },
|
|
156
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 15, y: 18 },
|
|
157
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 18, y: 18 },
|
|
158
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 20, y: 18 },
|
|
159
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 23, y: 18 },
|
|
160
|
+
],
|
|
161
|
+
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Game } from '@scrabble-solver/types';
|
|
2
2
|
export declare const literaki: {
|
|
3
|
-
|
|
3
|
+
bingo: {
|
|
4
|
+
score: number;
|
|
5
|
+
};
|
|
4
6
|
blankScore: number;
|
|
5
7
|
blanksCount: number;
|
|
6
|
-
|
|
8
|
+
boardHeight: number;
|
|
9
|
+
boardWidth: number;
|
|
7
10
|
game: Game;
|
|
8
11
|
name: string;
|
|
9
12
|
rackSize: number;
|
package/build/games/literaki.js
CHANGED
|
@@ -4,10 +4,11 @@ exports.literaki = void 0;
|
|
|
4
4
|
const constants_1 = require("@scrabble-solver/constants");
|
|
5
5
|
const types_1 = require("@scrabble-solver/types");
|
|
6
6
|
exports.literaki = {
|
|
7
|
-
|
|
7
|
+
bingo: { score: 50 },
|
|
8
8
|
blankScore: 0,
|
|
9
9
|
blanksCount: 2,
|
|
10
|
-
|
|
10
|
+
boardHeight: 15,
|
|
11
|
+
boardWidth: 15,
|
|
11
12
|
game: types_1.Game.Literaki,
|
|
12
13
|
name: 'Literaki',
|
|
13
14
|
rackSize: 7,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Game } from '@scrabble-solver/types';
|
|
2
2
|
export declare const scrabble: {
|
|
3
|
-
|
|
3
|
+
bingo: {
|
|
4
|
+
score: number;
|
|
5
|
+
};
|
|
4
6
|
blankScore: number;
|
|
5
7
|
blanksCount: number;
|
|
6
|
-
|
|
8
|
+
boardHeight: number;
|
|
9
|
+
boardWidth: number;
|
|
7
10
|
game: Game;
|
|
8
11
|
name: string;
|
|
9
12
|
rackSize: number;
|
package/build/games/scrabble.js
CHANGED
|
@@ -4,10 +4,11 @@ exports.scrabble = void 0;
|
|
|
4
4
|
const constants_1 = require("@scrabble-solver/constants");
|
|
5
5
|
const types_1 = require("@scrabble-solver/types");
|
|
6
6
|
exports.scrabble = {
|
|
7
|
-
|
|
7
|
+
bingo: { score: 50 },
|
|
8
8
|
blankScore: 0,
|
|
9
9
|
blanksCount: 2,
|
|
10
|
-
|
|
10
|
+
boardHeight: 15,
|
|
11
|
+
boardWidth: 15,
|
|
11
12
|
game: types_1.Game.Scrabble,
|
|
12
13
|
name: 'Scrabble',
|
|
13
14
|
rackSize: 7,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Game } from '@scrabble-solver/types';
|
|
2
|
+
export declare const scrabbleDuel: {
|
|
3
|
+
bingo: {
|
|
4
|
+
score: number;
|
|
5
|
+
};
|
|
6
|
+
blankScore: number;
|
|
7
|
+
blanksCount: number;
|
|
8
|
+
boardHeight: number;
|
|
9
|
+
boardWidth: number;
|
|
10
|
+
game: Game;
|
|
11
|
+
name: string;
|
|
12
|
+
rackSize: number;
|
|
13
|
+
bonuses: {
|
|
14
|
+
multiplier: number;
|
|
15
|
+
type: string;
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scrabbleDuel = void 0;
|
|
4
|
+
const constants_1 = require("@scrabble-solver/constants");
|
|
5
|
+
const types_1 = require("@scrabble-solver/types");
|
|
6
|
+
exports.scrabbleDuel = {
|
|
7
|
+
bingo: { score: 50 },
|
|
8
|
+
blankScore: 0,
|
|
9
|
+
blanksCount: 2,
|
|
10
|
+
boardHeight: 11,
|
|
11
|
+
boardWidth: 11,
|
|
12
|
+
game: types_1.Game.ScrabbleDuel,
|
|
13
|
+
name: 'Scrabble Duel',
|
|
14
|
+
rackSize: 7,
|
|
15
|
+
bonuses: [
|
|
16
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 5, y: 5 },
|
|
17
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 0 },
|
|
18
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 10, y: 0 },
|
|
19
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 0, y: 10 },
|
|
20
|
+
{ multiplier: 3, type: constants_1.BONUS_WORD, x: 10, y: 10 },
|
|
21
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 1 },
|
|
22
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 2 },
|
|
23
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 1 },
|
|
24
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 8, y: 2 },
|
|
25
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 1, y: 9 },
|
|
26
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 2, y: 8 },
|
|
27
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 9, y: 9 },
|
|
28
|
+
{ multiplier: 2, type: constants_1.BONUS_WORD, x: 8, y: 8 },
|
|
29
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 3, y: 3 },
|
|
30
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 3, y: 7 },
|
|
31
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 7, y: 3 },
|
|
32
|
+
{ multiplier: 3, type: constants_1.BONUS_CHARACTER, x: 7, y: 7 },
|
|
33
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 10 },
|
|
34
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 9 },
|
|
35
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 10 },
|
|
36
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 4 },
|
|
37
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 9, y: 5 },
|
|
38
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 10, y: 6 },
|
|
39
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 0 },
|
|
40
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 5, y: 1 },
|
|
41
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 0 },
|
|
42
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 4 },
|
|
43
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 1, y: 5 },
|
|
44
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 0, y: 6 },
|
|
45
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 4 },
|
|
46
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 4 },
|
|
47
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 4, y: 6 },
|
|
48
|
+
{ multiplier: 2, type: constants_1.BONUS_CHARACTER, x: 6, y: 6 },
|
|
49
|
+
],
|
|
50
|
+
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Game } from '@scrabble-solver/types';
|
|
2
2
|
export declare const superScrabble: {
|
|
3
|
-
|
|
3
|
+
bingo: {
|
|
4
|
+
score: number;
|
|
5
|
+
};
|
|
4
6
|
blankScore: number;
|
|
5
7
|
blanksCount: number;
|
|
6
|
-
|
|
8
|
+
boardHeight: number;
|
|
9
|
+
boardWidth: number;
|
|
7
10
|
game: Game;
|
|
8
11
|
name: string;
|
|
9
12
|
rackSize: number;
|
|
@@ -4,10 +4,11 @@ exports.superScrabble = void 0;
|
|
|
4
4
|
const constants_1 = require("@scrabble-solver/constants");
|
|
5
5
|
const types_1 = require("@scrabble-solver/types");
|
|
6
6
|
exports.superScrabble = {
|
|
7
|
-
|
|
7
|
+
bingo: { score: 50 },
|
|
8
8
|
blankScore: 0,
|
|
9
9
|
blanksCount: 4,
|
|
10
|
-
|
|
10
|
+
boardHeight: 21,
|
|
11
|
+
boardWidth: 21,
|
|
11
12
|
game: types_1.Game.SuperScrabble,
|
|
12
13
|
name: 'Super Scrabble',
|
|
13
14
|
rackSize: 7,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Config } from '@scrabble-solver/types';
|
|
2
|
+
export declare const englishGbLetterLeague: Config;
|
|
3
|
+
export declare const englishGbLiteraki: Config;
|
|
2
4
|
export declare const englishGbScrabble: Config;
|
|
5
|
+
export declare const englishGbScrabbleDuel: Config;
|
|
3
6
|
export declare const englishGbSuperScrabble: Config;
|
|
4
|
-
export declare const
|
|
7
|
+
export declare const englishUsLetterLeague: Config;
|
|
8
|
+
export declare const englishUsLiteraki: Config;
|
|
5
9
|
export declare const englishUsScrabble: Config;
|
|
10
|
+
export declare const englishUsScrabbleDuel: Config;
|
|
6
11
|
export declare const englishUsSuperScrabble: Config;
|
|
7
|
-
export declare const englishUsLiteraki: Config;
|
|
@@ -1,9 +1,74 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable max-lines */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.englishUsSuperScrabble = exports.englishUsScrabbleDuel = exports.englishUsScrabble = exports.englishUsLiteraki = exports.englishUsLetterLeague = exports.englishGbSuperScrabble = exports.englishGbScrabbleDuel = exports.englishGbScrabble = exports.englishGbLiteraki = exports.englishGbLetterLeague = void 0;
|
|
5
5
|
const types_1 = require("@scrabble-solver/types");
|
|
6
6
|
const games_1 = require("../games");
|
|
7
|
+
exports.englishGbLetterLeague = new types_1.Config({
|
|
8
|
+
...games_1.letterLeague,
|
|
9
|
+
locale: types_1.Locale.EN_GB,
|
|
10
|
+
tiles: [
|
|
11
|
+
{ character: 'a', score: 1 },
|
|
12
|
+
{ character: 'b', score: 3 },
|
|
13
|
+
{ character: 'c', score: 3 },
|
|
14
|
+
{ character: 'd', score: 2 },
|
|
15
|
+
{ character: 'e', score: 1 },
|
|
16
|
+
{ character: 'f', score: 4 },
|
|
17
|
+
{ character: 'g', score: 2 },
|
|
18
|
+
{ character: 'h', score: 4 },
|
|
19
|
+
{ character: 'i', score: 1 },
|
|
20
|
+
{ character: 'j', score: 8 },
|
|
21
|
+
{ character: 'k', score: 5 },
|
|
22
|
+
{ character: 'l', score: 2 },
|
|
23
|
+
{ character: 'm', score: 3 },
|
|
24
|
+
{ character: 'n', score: 1 },
|
|
25
|
+
{ character: 'o', score: 1 },
|
|
26
|
+
{ character: 'p', score: 3 },
|
|
27
|
+
{ character: 'q', score: 10 },
|
|
28
|
+
{ character: 'r', score: 1 },
|
|
29
|
+
{ character: 's', score: 1 },
|
|
30
|
+
{ character: 't', score: 1 },
|
|
31
|
+
{ character: 'u', score: 1 },
|
|
32
|
+
{ character: 'v', score: 4 },
|
|
33
|
+
{ character: 'w', score: 4 },
|
|
34
|
+
{ character: 'x', score: 8 },
|
|
35
|
+
{ character: 'y', score: 4 },
|
|
36
|
+
{ character: 'z', score: 10 },
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
exports.englishGbLiteraki = new types_1.Config({
|
|
40
|
+
...games_1.literaki,
|
|
41
|
+
locale: types_1.Locale.EN_GB,
|
|
42
|
+
name: 'Literaxx',
|
|
43
|
+
tiles: [
|
|
44
|
+
{ character: 'a', count: 9, score: 1 },
|
|
45
|
+
{ character: 'b', count: 2, score: 3 },
|
|
46
|
+
{ character: 'c', count: 2, score: 3 },
|
|
47
|
+
{ character: 'd', count: 4, score: 2 },
|
|
48
|
+
{ character: 'e', count: 12, score: 1 },
|
|
49
|
+
{ character: 'f', count: 2, score: 4 },
|
|
50
|
+
{ character: 'g', count: 3, score: 2 },
|
|
51
|
+
{ character: 'h', count: 2, score: 4 },
|
|
52
|
+
{ character: 'i', count: 9, score: 1 },
|
|
53
|
+
{ character: 'j', count: 1, score: 8 },
|
|
54
|
+
{ character: 'k', count: 1, score: 5 },
|
|
55
|
+
{ character: 'l', count: 4, score: 1 },
|
|
56
|
+
{ character: 'm', count: 2, score: 3 },
|
|
57
|
+
{ character: 'n', count: 6, score: 1 },
|
|
58
|
+
{ character: 'o', count: 8, score: 1 },
|
|
59
|
+
{ character: 'p', count: 2, score: 3 },
|
|
60
|
+
{ character: 'q', count: 1, score: 10 },
|
|
61
|
+
{ character: 'r', count: 6, score: 1 },
|
|
62
|
+
{ character: 's', count: 4, score: 1 },
|
|
63
|
+
{ character: 't', count: 6, score: 1 },
|
|
64
|
+
{ character: 'u', count: 4, score: 1 },
|
|
65
|
+
{ character: 'v', count: 2, score: 4 },
|
|
66
|
+
{ character: 'w', count: 2, score: 4 },
|
|
67
|
+
{ character: 'x', count: 1, score: 8 },
|
|
68
|
+
{ character: 'y', count: 2, score: 4 },
|
|
69
|
+
{ character: 'z', count: 1, score: 10 },
|
|
70
|
+
],
|
|
71
|
+
});
|
|
7
72
|
exports.englishGbScrabble = new types_1.Config({
|
|
8
73
|
...games_1.scrabble,
|
|
9
74
|
locale: types_1.Locale.EN_GB,
|
|
@@ -36,6 +101,38 @@ exports.englishGbScrabble = new types_1.Config({
|
|
|
36
101
|
{ character: 'z', count: 1, score: 10 },
|
|
37
102
|
],
|
|
38
103
|
});
|
|
104
|
+
exports.englishGbScrabbleDuel = new types_1.Config({
|
|
105
|
+
...games_1.scrabbleDuel,
|
|
106
|
+
locale: types_1.Locale.EN_GB,
|
|
107
|
+
tiles: [
|
|
108
|
+
{ character: 'a', count: 9, score: 1 },
|
|
109
|
+
{ character: 'b', count: 2, score: 3 },
|
|
110
|
+
{ character: 'c', count: 2, score: 3 },
|
|
111
|
+
{ character: 'd', count: 4, score: 2 },
|
|
112
|
+
{ character: 'e', count: 12, score: 1 },
|
|
113
|
+
{ character: 'f', count: 2, score: 4 },
|
|
114
|
+
{ character: 'g', count: 3, score: 2 },
|
|
115
|
+
{ character: 'h', count: 2, score: 4 },
|
|
116
|
+
{ character: 'i', count: 9, score: 1 },
|
|
117
|
+
{ character: 'j', count: 1, score: 8 },
|
|
118
|
+
{ character: 'k', count: 1, score: 5 },
|
|
119
|
+
{ character: 'l', count: 4, score: 1 },
|
|
120
|
+
{ character: 'm', count: 2, score: 3 },
|
|
121
|
+
{ character: 'n', count: 6, score: 1 },
|
|
122
|
+
{ character: 'o', count: 8, score: 1 },
|
|
123
|
+
{ character: 'p', count: 2, score: 3 },
|
|
124
|
+
{ character: 'q', count: 1, score: 10 },
|
|
125
|
+
{ character: 'r', count: 6, score: 1 },
|
|
126
|
+
{ character: 's', count: 4, score: 1 },
|
|
127
|
+
{ character: 't', count: 6, score: 1 },
|
|
128
|
+
{ character: 'u', count: 4, score: 1 },
|
|
129
|
+
{ character: 'v', count: 2, score: 4 },
|
|
130
|
+
{ character: 'w', count: 2, score: 4 },
|
|
131
|
+
{ character: 'x', count: 1, score: 8 },
|
|
132
|
+
{ character: 'y', count: 2, score: 4 },
|
|
133
|
+
{ character: 'z', count: 1, score: 10 },
|
|
134
|
+
],
|
|
135
|
+
});
|
|
39
136
|
exports.englishGbSuperScrabble = new types_1.Config({
|
|
40
137
|
...games_1.superScrabble,
|
|
41
138
|
locale: types_1.Locale.EN_GB,
|
|
@@ -68,9 +165,41 @@ exports.englishGbSuperScrabble = new types_1.Config({
|
|
|
68
165
|
{ character: 'z', count: 2, score: 10 },
|
|
69
166
|
],
|
|
70
167
|
});
|
|
71
|
-
exports.
|
|
168
|
+
exports.englishUsLetterLeague = new types_1.Config({
|
|
169
|
+
...games_1.letterLeague,
|
|
170
|
+
locale: types_1.Locale.EN_US,
|
|
171
|
+
tiles: [
|
|
172
|
+
{ character: 'a', score: 1 },
|
|
173
|
+
{ character: 'b', score: 3 },
|
|
174
|
+
{ character: 'c', score: 3 },
|
|
175
|
+
{ character: 'd', score: 2 },
|
|
176
|
+
{ character: 'e', score: 1 },
|
|
177
|
+
{ character: 'f', score: 4 },
|
|
178
|
+
{ character: 'g', score: 2 },
|
|
179
|
+
{ character: 'h', score: 4 },
|
|
180
|
+
{ character: 'i', score: 1 },
|
|
181
|
+
{ character: 'j', score: 8 },
|
|
182
|
+
{ character: 'k', score: 5 },
|
|
183
|
+
{ character: 'l', score: 2 },
|
|
184
|
+
{ character: 'm', score: 3 },
|
|
185
|
+
{ character: 'n', score: 1 },
|
|
186
|
+
{ character: 'o', score: 1 },
|
|
187
|
+
{ character: 'p', score: 3 },
|
|
188
|
+
{ character: 'q', score: 10 },
|
|
189
|
+
{ character: 'r', score: 1 },
|
|
190
|
+
{ character: 's', score: 1 },
|
|
191
|
+
{ character: 't', score: 1 },
|
|
192
|
+
{ character: 'u', score: 1 },
|
|
193
|
+
{ character: 'v', score: 4 },
|
|
194
|
+
{ character: 'w', score: 4 },
|
|
195
|
+
{ character: 'x', score: 8 },
|
|
196
|
+
{ character: 'y', score: 4 },
|
|
197
|
+
{ character: 'z', score: 10 },
|
|
198
|
+
],
|
|
199
|
+
});
|
|
200
|
+
exports.englishUsLiteraki = new types_1.Config({
|
|
72
201
|
...games_1.literaki,
|
|
73
|
-
locale: types_1.Locale.
|
|
202
|
+
locale: types_1.Locale.EN_US,
|
|
74
203
|
name: 'Literaxx',
|
|
75
204
|
tiles: [
|
|
76
205
|
{ character: 'a', count: 9, score: 1 },
|
|
@@ -133,6 +262,38 @@ exports.englishUsScrabble = new types_1.Config({
|
|
|
133
262
|
{ character: 'z', count: 1, score: 10 },
|
|
134
263
|
],
|
|
135
264
|
});
|
|
265
|
+
exports.englishUsScrabbleDuel = new types_1.Config({
|
|
266
|
+
...games_1.scrabbleDuel,
|
|
267
|
+
locale: types_1.Locale.EN_US,
|
|
268
|
+
tiles: [
|
|
269
|
+
{ character: 'a', count: 9, score: 1 },
|
|
270
|
+
{ character: 'b', count: 2, score: 3 },
|
|
271
|
+
{ character: 'c', count: 2, score: 3 },
|
|
272
|
+
{ character: 'd', count: 4, score: 2 },
|
|
273
|
+
{ character: 'e', count: 12, score: 1 },
|
|
274
|
+
{ character: 'f', count: 2, score: 4 },
|
|
275
|
+
{ character: 'g', count: 3, score: 2 },
|
|
276
|
+
{ character: 'h', count: 2, score: 4 },
|
|
277
|
+
{ character: 'i', count: 9, score: 1 },
|
|
278
|
+
{ character: 'j', count: 1, score: 8 },
|
|
279
|
+
{ character: 'k', count: 1, score: 5 },
|
|
280
|
+
{ character: 'l', count: 4, score: 1 },
|
|
281
|
+
{ character: 'm', count: 2, score: 3 },
|
|
282
|
+
{ character: 'n', count: 6, score: 1 },
|
|
283
|
+
{ character: 'o', count: 8, score: 1 },
|
|
284
|
+
{ character: 'p', count: 2, score: 3 },
|
|
285
|
+
{ character: 'q', count: 1, score: 10 },
|
|
286
|
+
{ character: 'r', count: 6, score: 1 },
|
|
287
|
+
{ character: 's', count: 4, score: 1 },
|
|
288
|
+
{ character: 't', count: 6, score: 1 },
|
|
289
|
+
{ character: 'u', count: 4, score: 1 },
|
|
290
|
+
{ character: 'v', count: 2, score: 4 },
|
|
291
|
+
{ character: 'w', count: 2, score: 4 },
|
|
292
|
+
{ character: 'x', count: 1, score: 8 },
|
|
293
|
+
{ character: 'y', count: 2, score: 4 },
|
|
294
|
+
{ character: 'z', count: 1, score: 10 },
|
|
295
|
+
],
|
|
296
|
+
});
|
|
136
297
|
exports.englishUsSuperScrabble = new types_1.Config({
|
|
137
298
|
...games_1.superScrabble,
|
|
138
299
|
locale: types_1.Locale.EN_US,
|
|
@@ -165,36 +326,3 @@ exports.englishUsSuperScrabble = new types_1.Config({
|
|
|
165
326
|
{ character: 'z', count: 2, score: 10 },
|
|
166
327
|
],
|
|
167
328
|
});
|
|
168
|
-
exports.englishUsLiteraki = new types_1.Config({
|
|
169
|
-
...games_1.literaki,
|
|
170
|
-
locale: types_1.Locale.EN_US,
|
|
171
|
-
name: 'Literaxx',
|
|
172
|
-
tiles: [
|
|
173
|
-
{ character: 'a', count: 9, score: 1 },
|
|
174
|
-
{ character: 'b', count: 2, score: 3 },
|
|
175
|
-
{ character: 'c', count: 2, score: 3 },
|
|
176
|
-
{ character: 'd', count: 4, score: 2 },
|
|
177
|
-
{ character: 'e', count: 12, score: 1 },
|
|
178
|
-
{ character: 'f', count: 2, score: 4 },
|
|
179
|
-
{ character: 'g', count: 3, score: 2 },
|
|
180
|
-
{ character: 'h', count: 2, score: 4 },
|
|
181
|
-
{ character: 'i', count: 9, score: 1 },
|
|
182
|
-
{ character: 'j', count: 1, score: 8 },
|
|
183
|
-
{ character: 'k', count: 1, score: 5 },
|
|
184
|
-
{ character: 'l', count: 4, score: 1 },
|
|
185
|
-
{ character: 'm', count: 2, score: 3 },
|
|
186
|
-
{ character: 'n', count: 6, score: 1 },
|
|
187
|
-
{ character: 'o', count: 8, score: 1 },
|
|
188
|
-
{ character: 'p', count: 2, score: 3 },
|
|
189
|
-
{ character: 'q', count: 1, score: 10 },
|
|
190
|
-
{ character: 'r', count: 6, score: 1 },
|
|
191
|
-
{ character: 's', count: 4, score: 1 },
|
|
192
|
-
{ character: 't', count: 6, score: 1 },
|
|
193
|
-
{ character: 'u', count: 4, score: 1 },
|
|
194
|
-
{ character: 'v', count: 2, score: 4 },
|
|
195
|
-
{ character: 'w', count: 2, score: 4 },
|
|
196
|
-
{ character: 'x', count: 1, score: 8 },
|
|
197
|
-
{ character: 'y', count: 2, score: 4 },
|
|
198
|
-
{ character: 'z', count: 1, score: 10 },
|
|
199
|
-
],
|
|
200
|
-
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/configs",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.11",
|
|
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.15.
|
|
27
|
-
"@scrabble-solver/types": "^2.15.
|
|
26
|
+
"@scrabble-solver/constants": "^2.15.11",
|
|
27
|
+
"@scrabble-solver/types": "^2.15.11"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4fa527098d5e67120adb7964777c044a09378332"
|
|
30
30
|
}
|
package/src/games/index.ts
CHANGED
package/src/games/kelimelik.ts
CHANGED
|
@@ -2,10 +2,11 @@ import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
|
2
2
|
import { Game } from '@scrabble-solver/types';
|
|
3
3
|
|
|
4
4
|
export const kelimelik = {
|
|
5
|
-
|
|
5
|
+
bingo: { score: 30 },
|
|
6
6
|
blankScore: 0,
|
|
7
7
|
blanksCount: 2,
|
|
8
|
-
|
|
8
|
+
boardHeight: 15,
|
|
9
|
+
boardWidth: 15,
|
|
9
10
|
game: Game.Kelimelik,
|
|
10
11
|
name: 'Kelimelik',
|
|
11
12
|
rackSize: 7,
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
2
|
+
import { Game } from '@scrabble-solver/types';
|
|
3
|
+
|
|
4
|
+
export const letterLeague = {
|
|
5
|
+
bingo: { multiplier: 2 },
|
|
6
|
+
blankScore: 0,
|
|
7
|
+
blanksCount: 2,
|
|
8
|
+
boardHeight: 19,
|
|
9
|
+
boardWidth: 27,
|
|
10
|
+
game: Game.LetterLeague,
|
|
11
|
+
name: 'Letter League',
|
|
12
|
+
rackSize: 7,
|
|
13
|
+
bonuses: [
|
|
14
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 3, y: 0 },
|
|
15
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 0 },
|
|
16
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 0 },
|
|
17
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 11, y: 0 },
|
|
18
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 15, y: 0 },
|
|
19
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 18, y: 0 },
|
|
20
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 20, y: 0 },
|
|
21
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 23, y: 0 },
|
|
22
|
+
|
|
23
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 1, y: 1 },
|
|
24
|
+
{ multiplier: 2, type: BONUS_WORD, x: 5, y: 1 },
|
|
25
|
+
{ multiplier: 2, type: BONUS_WORD, x: 9, y: 1 },
|
|
26
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 13, y: 1 },
|
|
27
|
+
{ multiplier: 2, type: BONUS_WORD, x: 17, y: 1 },
|
|
28
|
+
{ multiplier: 2, type: BONUS_WORD, x: 21, y: 1 },
|
|
29
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 25, y: 1 },
|
|
30
|
+
|
|
31
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 2 },
|
|
32
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 6, y: 2 },
|
|
33
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 8, y: 2 },
|
|
34
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 10, y: 2 },
|
|
35
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 16, y: 2 },
|
|
36
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 18, y: 2 },
|
|
37
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 20, y: 2 },
|
|
38
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 22, y: 2 },
|
|
39
|
+
|
|
40
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 3 },
|
|
41
|
+
{ multiplier: 2, type: BONUS_WORD, x: 1, y: 3 },
|
|
42
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 2, y: 3 },
|
|
43
|
+
{ multiplier: 3, type: BONUS_WORD, x: 7, y: 3 },
|
|
44
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 12, y: 3 },
|
|
45
|
+
{ multiplier: 2, type: BONUS_WORD, x: 13, y: 3 },
|
|
46
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 14, y: 3 },
|
|
47
|
+
{ multiplier: 3, type: BONUS_WORD, x: 19, y: 3 },
|
|
48
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 24, y: 3 },
|
|
49
|
+
{ multiplier: 2, type: BONUS_WORD, x: 25, y: 3 },
|
|
50
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 26, y: 3 },
|
|
51
|
+
|
|
52
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 4 },
|
|
53
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 6, y: 4 },
|
|
54
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 8, y: 4 },
|
|
55
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 10, y: 4 },
|
|
56
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 16, y: 4 },
|
|
57
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 18, y: 4 },
|
|
58
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 20, y: 4 },
|
|
59
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 22, y: 4 },
|
|
60
|
+
|
|
61
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 1, y: 5 },
|
|
62
|
+
{ multiplier: 2, type: BONUS_WORD, x: 5, y: 5 },
|
|
63
|
+
{ multiplier: 2, type: BONUS_WORD, x: 9, y: 5 },
|
|
64
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 13, y: 5 },
|
|
65
|
+
{ multiplier: 2, type: BONUS_WORD, x: 17, y: 5 },
|
|
66
|
+
{ multiplier: 2, type: BONUS_WORD, x: 21, y: 5 },
|
|
67
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 25, y: 5 },
|
|
68
|
+
|
|
69
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 3, y: 6 },
|
|
70
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 6 },
|
|
71
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 6 },
|
|
72
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 11, y: 6 },
|
|
73
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 15, y: 6 },
|
|
74
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 18, y: 6 },
|
|
75
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 20, y: 6 },
|
|
76
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 23, y: 6 },
|
|
77
|
+
|
|
78
|
+
{ multiplier: 2, type: BONUS_WORD, x: 4, y: 7 },
|
|
79
|
+
{ multiplier: 2, type: BONUS_WORD, x: 10, y: 7 },
|
|
80
|
+
{ multiplier: 2, type: BONUS_WORD, x: 16, y: 7 },
|
|
81
|
+
{ multiplier: 2, type: BONUS_WORD, x: 22, y: 7 },
|
|
82
|
+
|
|
83
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 0, y: 8 },
|
|
84
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 2, y: 8 },
|
|
85
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 7, y: 8 },
|
|
86
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 12, y: 8 },
|
|
87
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 14, y: 8 },
|
|
88
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 19, y: 8 },
|
|
89
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 24, y: 8 },
|
|
90
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 26, y: 8 },
|
|
91
|
+
|
|
92
|
+
{ multiplier: 2, type: BONUS_WORD, x: 3, y: 9 },
|
|
93
|
+
{ multiplier: 2, type: BONUS_WORD, x: 7, y: 9 },
|
|
94
|
+
{ multiplier: 2, type: BONUS_WORD, x: 11, y: 9 },
|
|
95
|
+
{ multiplier: 2, type: BONUS_WORD, x: 15, y: 9 },
|
|
96
|
+
{ multiplier: 2, type: BONUS_WORD, x: 19, y: 9 },
|
|
97
|
+
{ multiplier: 2, type: BONUS_WORD, x: 23, y: 9 },
|
|
98
|
+
|
|
99
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 0, y: 10 },
|
|
100
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 2, y: 10 },
|
|
101
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 7, y: 10 },
|
|
102
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 12, y: 10 },
|
|
103
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 14, y: 10 },
|
|
104
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 19, y: 10 },
|
|
105
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 24, y: 10 },
|
|
106
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 26, y: 10 },
|
|
107
|
+
|
|
108
|
+
{ multiplier: 2, type: BONUS_WORD, x: 4, y: 11 },
|
|
109
|
+
{ multiplier: 2, type: BONUS_WORD, x: 10, y: 11 },
|
|
110
|
+
{ multiplier: 2, type: BONUS_WORD, x: 16, y: 11 },
|
|
111
|
+
{ multiplier: 2, type: BONUS_WORD, x: 22, y: 11 },
|
|
112
|
+
|
|
113
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 3, y: 12 },
|
|
114
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 12 },
|
|
115
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 12 },
|
|
116
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 11, y: 12 },
|
|
117
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 15, y: 12 },
|
|
118
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 18, y: 12 },
|
|
119
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 20, y: 12 },
|
|
120
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 23, y: 12 },
|
|
121
|
+
|
|
122
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 1, y: 13 },
|
|
123
|
+
{ multiplier: 2, type: BONUS_WORD, x: 5, y: 13 },
|
|
124
|
+
{ multiplier: 2, type: BONUS_WORD, x: 9, y: 13 },
|
|
125
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 13, y: 13 },
|
|
126
|
+
{ multiplier: 2, type: BONUS_WORD, x: 17, y: 13 },
|
|
127
|
+
{ multiplier: 2, type: BONUS_WORD, x: 21, y: 13 },
|
|
128
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 25, y: 13 },
|
|
129
|
+
|
|
130
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 14 },
|
|
131
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 6, y: 14 },
|
|
132
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 8, y: 14 },
|
|
133
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 10, y: 14 },
|
|
134
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 16, y: 14 },
|
|
135
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 18, y: 14 },
|
|
136
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 20, y: 14 },
|
|
137
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 22, y: 14 },
|
|
138
|
+
|
|
139
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 15 },
|
|
140
|
+
{ multiplier: 2, type: BONUS_WORD, x: 1, y: 15 },
|
|
141
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 2, y: 15 },
|
|
142
|
+
{ multiplier: 3, type: BONUS_WORD, x: 7, y: 15 },
|
|
143
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 12, y: 15 },
|
|
144
|
+
{ multiplier: 2, type: BONUS_WORD, x: 13, y: 15 },
|
|
145
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 14, y: 15 },
|
|
146
|
+
{ multiplier: 3, type: BONUS_WORD, x: 19, y: 15 },
|
|
147
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 24, y: 15 },
|
|
148
|
+
{ multiplier: 2, type: BONUS_WORD, x: 25, y: 15 },
|
|
149
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 26, y: 15 },
|
|
150
|
+
|
|
151
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 16 },
|
|
152
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 6, y: 16 },
|
|
153
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 8, y: 16 },
|
|
154
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 10, y: 16 },
|
|
155
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 16, y: 16 },
|
|
156
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 18, y: 16 },
|
|
157
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 20, y: 16 },
|
|
158
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 22, y: 16 },
|
|
159
|
+
|
|
160
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 1, y: 17 },
|
|
161
|
+
{ multiplier: 2, type: BONUS_WORD, x: 5, y: 17 },
|
|
162
|
+
{ multiplier: 2, type: BONUS_WORD, x: 9, y: 17 },
|
|
163
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 13, y: 17 },
|
|
164
|
+
{ multiplier: 2, type: BONUS_WORD, x: 17, y: 17 },
|
|
165
|
+
{ multiplier: 2, type: BONUS_WORD, x: 21, y: 17 },
|
|
166
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 25, y: 17 },
|
|
167
|
+
|
|
168
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 3, y: 18 },
|
|
169
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 18 },
|
|
170
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 8, y: 18 },
|
|
171
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 11, y: 18 },
|
|
172
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 15, y: 18 },
|
|
173
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 18, y: 18 },
|
|
174
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 20, y: 18 },
|
|
175
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 23, y: 18 },
|
|
176
|
+
],
|
|
177
|
+
};
|
package/src/games/literaki.ts
CHANGED
|
@@ -2,10 +2,11 @@ import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
|
2
2
|
import { Game } from '@scrabble-solver/types';
|
|
3
3
|
|
|
4
4
|
export const literaki = {
|
|
5
|
-
|
|
5
|
+
bingo: { score: 50 },
|
|
6
6
|
blankScore: 0,
|
|
7
7
|
blanksCount: 2,
|
|
8
|
-
|
|
8
|
+
boardHeight: 15,
|
|
9
|
+
boardWidth: 15,
|
|
9
10
|
game: Game.Literaki,
|
|
10
11
|
name: 'Literaki',
|
|
11
12
|
rackSize: 7,
|
package/src/games/scrabble.ts
CHANGED
|
@@ -2,10 +2,11 @@ import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
|
2
2
|
import { Game } from '@scrabble-solver/types';
|
|
3
3
|
|
|
4
4
|
export const scrabble = {
|
|
5
|
-
|
|
5
|
+
bingo: { score: 50 },
|
|
6
6
|
blankScore: 0,
|
|
7
7
|
blanksCount: 2,
|
|
8
|
-
|
|
8
|
+
boardHeight: 15,
|
|
9
|
+
boardWidth: 15,
|
|
9
10
|
game: Game.Scrabble,
|
|
10
11
|
name: 'Scrabble',
|
|
11
12
|
rackSize: 7,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
2
|
+
import { Game } from '@scrabble-solver/types';
|
|
3
|
+
|
|
4
|
+
export const scrabbleDuel = {
|
|
5
|
+
bingo: { score: 50 },
|
|
6
|
+
blankScore: 0,
|
|
7
|
+
blanksCount: 2,
|
|
8
|
+
boardHeight: 11,
|
|
9
|
+
boardWidth: 11,
|
|
10
|
+
game: Game.ScrabbleDuel,
|
|
11
|
+
name: 'Scrabble Duel',
|
|
12
|
+
rackSize: 7,
|
|
13
|
+
bonuses: [
|
|
14
|
+
{ multiplier: 2, type: BONUS_WORD, x: 5, y: 5 },
|
|
15
|
+
|
|
16
|
+
{ multiplier: 3, type: BONUS_WORD, x: 0, y: 0 },
|
|
17
|
+
{ multiplier: 3, type: BONUS_WORD, x: 10, y: 0 },
|
|
18
|
+
{ multiplier: 3, type: BONUS_WORD, x: 0, y: 10 },
|
|
19
|
+
{ multiplier: 3, type: BONUS_WORD, x: 10, y: 10 },
|
|
20
|
+
|
|
21
|
+
{ multiplier: 2, type: BONUS_WORD, x: 1, y: 1 },
|
|
22
|
+
{ multiplier: 2, type: BONUS_WORD, x: 2, y: 2 },
|
|
23
|
+
{ multiplier: 2, type: BONUS_WORD, x: 9, y: 1 },
|
|
24
|
+
{ multiplier: 2, type: BONUS_WORD, x: 8, y: 2 },
|
|
25
|
+
{ multiplier: 2, type: BONUS_WORD, x: 1, y: 9 },
|
|
26
|
+
{ multiplier: 2, type: BONUS_WORD, x: 2, y: 8 },
|
|
27
|
+
{ multiplier: 2, type: BONUS_WORD, x: 9, y: 9 },
|
|
28
|
+
{ multiplier: 2, type: BONUS_WORD, x: 8, y: 8 },
|
|
29
|
+
|
|
30
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 3, y: 3 },
|
|
31
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 3, y: 7 },
|
|
32
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 7, y: 3 },
|
|
33
|
+
{ multiplier: 3, type: BONUS_CHARACTER, x: 7, y: 7 },
|
|
34
|
+
|
|
35
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 10 },
|
|
36
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 5, y: 9 },
|
|
37
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 10 },
|
|
38
|
+
|
|
39
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 10, y: 4 },
|
|
40
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 9, y: 5 },
|
|
41
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 10, y: 6 },
|
|
42
|
+
|
|
43
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 0 },
|
|
44
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 5, y: 1 },
|
|
45
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 0 },
|
|
46
|
+
|
|
47
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 4 },
|
|
48
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 1, y: 5 },
|
|
49
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 0, y: 6 },
|
|
50
|
+
|
|
51
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 4 },
|
|
52
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 4 },
|
|
53
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 4, y: 6 },
|
|
54
|
+
{ multiplier: 2, type: BONUS_CHARACTER, x: 6, y: 6 },
|
|
55
|
+
],
|
|
56
|
+
};
|
|
@@ -2,10 +2,11 @@ import { BONUS_CHARACTER, BONUS_WORD } from '@scrabble-solver/constants';
|
|
|
2
2
|
import { Game } from '@scrabble-solver/types';
|
|
3
3
|
|
|
4
4
|
export const superScrabble = {
|
|
5
|
-
|
|
5
|
+
bingo: { score: 50 },
|
|
6
6
|
blankScore: 0,
|
|
7
7
|
blanksCount: 4,
|
|
8
|
-
|
|
8
|
+
boardHeight: 21,
|
|
9
|
+
boardWidth: 21,
|
|
9
10
|
game: Game.SuperScrabble,
|
|
10
11
|
name: 'Super Scrabble',
|
|
11
12
|
rackSize: 7,
|
package/src/languages/english.ts
CHANGED
|
@@ -2,7 +2,74 @@
|
|
|
2
2
|
|
|
3
3
|
import { Config, Locale } from '@scrabble-solver/types';
|
|
4
4
|
|
|
5
|
-
import { literaki, scrabble, superScrabble } from '../games';
|
|
5
|
+
import { letterLeague, literaki, scrabble, scrabbleDuel, superScrabble } from '../games';
|
|
6
|
+
|
|
7
|
+
export const englishGbLetterLeague = new Config({
|
|
8
|
+
...letterLeague,
|
|
9
|
+
locale: Locale.EN_GB,
|
|
10
|
+
tiles: [
|
|
11
|
+
{ character: 'a', score: 1 },
|
|
12
|
+
{ character: 'b', score: 3 },
|
|
13
|
+
{ character: 'c', score: 3 },
|
|
14
|
+
{ character: 'd', score: 2 },
|
|
15
|
+
{ character: 'e', score: 1 },
|
|
16
|
+
{ character: 'f', score: 4 },
|
|
17
|
+
{ character: 'g', score: 2 },
|
|
18
|
+
{ character: 'h', score: 4 },
|
|
19
|
+
{ character: 'i', score: 1 },
|
|
20
|
+
{ character: 'j', score: 8 },
|
|
21
|
+
{ character: 'k', score: 5 },
|
|
22
|
+
{ character: 'l', score: 2 },
|
|
23
|
+
{ character: 'm', score: 3 },
|
|
24
|
+
{ character: 'n', score: 1 },
|
|
25
|
+
{ character: 'o', score: 1 },
|
|
26
|
+
{ character: 'p', score: 3 },
|
|
27
|
+
{ character: 'q', score: 10 },
|
|
28
|
+
{ character: 'r', score: 1 },
|
|
29
|
+
{ character: 's', score: 1 },
|
|
30
|
+
{ character: 't', score: 1 },
|
|
31
|
+
{ character: 'u', score: 1 },
|
|
32
|
+
{ character: 'v', score: 4 },
|
|
33
|
+
{ character: 'w', score: 4 },
|
|
34
|
+
{ character: 'x', score: 8 },
|
|
35
|
+
{ character: 'y', score: 4 },
|
|
36
|
+
{ character: 'z', score: 10 },
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export const englishGbLiteraki = new Config({
|
|
41
|
+
...literaki,
|
|
42
|
+
locale: Locale.EN_GB,
|
|
43
|
+
name: 'Literaxx',
|
|
44
|
+
tiles: [
|
|
45
|
+
{ character: 'a', count: 9, score: 1 },
|
|
46
|
+
{ character: 'b', count: 2, score: 3 },
|
|
47
|
+
{ character: 'c', count: 2, score: 3 },
|
|
48
|
+
{ character: 'd', count: 4, score: 2 },
|
|
49
|
+
{ character: 'e', count: 12, score: 1 },
|
|
50
|
+
{ character: 'f', count: 2, score: 4 },
|
|
51
|
+
{ character: 'g', count: 3, score: 2 },
|
|
52
|
+
{ character: 'h', count: 2, score: 4 },
|
|
53
|
+
{ character: 'i', count: 9, score: 1 },
|
|
54
|
+
{ character: 'j', count: 1, score: 8 },
|
|
55
|
+
{ character: 'k', count: 1, score: 5 },
|
|
56
|
+
{ character: 'l', count: 4, score: 1 },
|
|
57
|
+
{ character: 'm', count: 2, score: 3 },
|
|
58
|
+
{ character: 'n', count: 6, score: 1 },
|
|
59
|
+
{ character: 'o', count: 8, score: 1 },
|
|
60
|
+
{ character: 'p', count: 2, score: 3 },
|
|
61
|
+
{ character: 'q', count: 1, score: 10 },
|
|
62
|
+
{ character: 'r', count: 6, score: 1 },
|
|
63
|
+
{ character: 's', count: 4, score: 1 },
|
|
64
|
+
{ character: 't', count: 6, score: 1 },
|
|
65
|
+
{ character: 'u', count: 4, score: 1 },
|
|
66
|
+
{ character: 'v', count: 2, score: 4 },
|
|
67
|
+
{ character: 'w', count: 2, score: 4 },
|
|
68
|
+
{ character: 'x', count: 1, score: 8 },
|
|
69
|
+
{ character: 'y', count: 2, score: 4 },
|
|
70
|
+
{ character: 'z', count: 1, score: 10 },
|
|
71
|
+
],
|
|
72
|
+
});
|
|
6
73
|
|
|
7
74
|
export const englishGbScrabble = new Config({
|
|
8
75
|
...scrabble,
|
|
@@ -37,6 +104,39 @@ export const englishGbScrabble = new Config({
|
|
|
37
104
|
],
|
|
38
105
|
});
|
|
39
106
|
|
|
107
|
+
export const englishGbScrabbleDuel = new Config({
|
|
108
|
+
...scrabbleDuel,
|
|
109
|
+
locale: Locale.EN_GB,
|
|
110
|
+
tiles: [
|
|
111
|
+
{ character: 'a', count: 9, score: 1 },
|
|
112
|
+
{ character: 'b', count: 2, score: 3 },
|
|
113
|
+
{ character: 'c', count: 2, score: 3 },
|
|
114
|
+
{ character: 'd', count: 4, score: 2 },
|
|
115
|
+
{ character: 'e', count: 12, score: 1 },
|
|
116
|
+
{ character: 'f', count: 2, score: 4 },
|
|
117
|
+
{ character: 'g', count: 3, score: 2 },
|
|
118
|
+
{ character: 'h', count: 2, score: 4 },
|
|
119
|
+
{ character: 'i', count: 9, score: 1 },
|
|
120
|
+
{ character: 'j', count: 1, score: 8 },
|
|
121
|
+
{ character: 'k', count: 1, score: 5 },
|
|
122
|
+
{ character: 'l', count: 4, score: 1 },
|
|
123
|
+
{ character: 'm', count: 2, score: 3 },
|
|
124
|
+
{ character: 'n', count: 6, score: 1 },
|
|
125
|
+
{ character: 'o', count: 8, score: 1 },
|
|
126
|
+
{ character: 'p', count: 2, score: 3 },
|
|
127
|
+
{ character: 'q', count: 1, score: 10 },
|
|
128
|
+
{ character: 'r', count: 6, score: 1 },
|
|
129
|
+
{ character: 's', count: 4, score: 1 },
|
|
130
|
+
{ character: 't', count: 6, score: 1 },
|
|
131
|
+
{ character: 'u', count: 4, score: 1 },
|
|
132
|
+
{ character: 'v', count: 2, score: 4 },
|
|
133
|
+
{ character: 'w', count: 2, score: 4 },
|
|
134
|
+
{ character: 'x', count: 1, score: 8 },
|
|
135
|
+
{ character: 'y', count: 2, score: 4 },
|
|
136
|
+
{ character: 'z', count: 1, score: 10 },
|
|
137
|
+
],
|
|
138
|
+
});
|
|
139
|
+
|
|
40
140
|
export const englishGbSuperScrabble = new Config({
|
|
41
141
|
...superScrabble,
|
|
42
142
|
locale: Locale.EN_GB,
|
|
@@ -70,9 +170,42 @@ export const englishGbSuperScrabble = new Config({
|
|
|
70
170
|
],
|
|
71
171
|
});
|
|
72
172
|
|
|
73
|
-
export const
|
|
173
|
+
export const englishUsLetterLeague = new Config({
|
|
174
|
+
...letterLeague,
|
|
175
|
+
locale: Locale.EN_US,
|
|
176
|
+
tiles: [
|
|
177
|
+
{ character: 'a', score: 1 },
|
|
178
|
+
{ character: 'b', score: 3 },
|
|
179
|
+
{ character: 'c', score: 3 },
|
|
180
|
+
{ character: 'd', score: 2 },
|
|
181
|
+
{ character: 'e', score: 1 },
|
|
182
|
+
{ character: 'f', score: 4 },
|
|
183
|
+
{ character: 'g', score: 2 },
|
|
184
|
+
{ character: 'h', score: 4 },
|
|
185
|
+
{ character: 'i', score: 1 },
|
|
186
|
+
{ character: 'j', score: 8 },
|
|
187
|
+
{ character: 'k', score: 5 },
|
|
188
|
+
{ character: 'l', score: 2 },
|
|
189
|
+
{ character: 'm', score: 3 },
|
|
190
|
+
{ character: 'n', score: 1 },
|
|
191
|
+
{ character: 'o', score: 1 },
|
|
192
|
+
{ character: 'p', score: 3 },
|
|
193
|
+
{ character: 'q', score: 10 },
|
|
194
|
+
{ character: 'r', score: 1 },
|
|
195
|
+
{ character: 's', score: 1 },
|
|
196
|
+
{ character: 't', score: 1 },
|
|
197
|
+
{ character: 'u', score: 1 },
|
|
198
|
+
{ character: 'v', score: 4 },
|
|
199
|
+
{ character: 'w', score: 4 },
|
|
200
|
+
{ character: 'x', score: 8 },
|
|
201
|
+
{ character: 'y', score: 4 },
|
|
202
|
+
{ character: 'z', score: 10 },
|
|
203
|
+
],
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
export const englishUsLiteraki = new Config({
|
|
74
207
|
...literaki,
|
|
75
|
-
locale: Locale.
|
|
208
|
+
locale: Locale.EN_US,
|
|
76
209
|
name: 'Literaxx',
|
|
77
210
|
tiles: [
|
|
78
211
|
{ character: 'a', count: 9, score: 1 },
|
|
@@ -137,6 +270,39 @@ export const englishUsScrabble = new Config({
|
|
|
137
270
|
],
|
|
138
271
|
});
|
|
139
272
|
|
|
273
|
+
export const englishUsScrabbleDuel = new Config({
|
|
274
|
+
...scrabbleDuel,
|
|
275
|
+
locale: Locale.EN_US,
|
|
276
|
+
tiles: [
|
|
277
|
+
{ character: 'a', count: 9, score: 1 },
|
|
278
|
+
{ character: 'b', count: 2, score: 3 },
|
|
279
|
+
{ character: 'c', count: 2, score: 3 },
|
|
280
|
+
{ character: 'd', count: 4, score: 2 },
|
|
281
|
+
{ character: 'e', count: 12, score: 1 },
|
|
282
|
+
{ character: 'f', count: 2, score: 4 },
|
|
283
|
+
{ character: 'g', count: 3, score: 2 },
|
|
284
|
+
{ character: 'h', count: 2, score: 4 },
|
|
285
|
+
{ character: 'i', count: 9, score: 1 },
|
|
286
|
+
{ character: 'j', count: 1, score: 8 },
|
|
287
|
+
{ character: 'k', count: 1, score: 5 },
|
|
288
|
+
{ character: 'l', count: 4, score: 1 },
|
|
289
|
+
{ character: 'm', count: 2, score: 3 },
|
|
290
|
+
{ character: 'n', count: 6, score: 1 },
|
|
291
|
+
{ character: 'o', count: 8, score: 1 },
|
|
292
|
+
{ character: 'p', count: 2, score: 3 },
|
|
293
|
+
{ character: 'q', count: 1, score: 10 },
|
|
294
|
+
{ character: 'r', count: 6, score: 1 },
|
|
295
|
+
{ character: 's', count: 4, score: 1 },
|
|
296
|
+
{ character: 't', count: 6, score: 1 },
|
|
297
|
+
{ character: 'u', count: 4, score: 1 },
|
|
298
|
+
{ character: 'v', count: 2, score: 4 },
|
|
299
|
+
{ character: 'w', count: 2, score: 4 },
|
|
300
|
+
{ character: 'x', count: 1, score: 8 },
|
|
301
|
+
{ character: 'y', count: 2, score: 4 },
|
|
302
|
+
{ character: 'z', count: 1, score: 10 },
|
|
303
|
+
],
|
|
304
|
+
});
|
|
305
|
+
|
|
140
306
|
export const englishUsSuperScrabble = new Config({
|
|
141
307
|
...superScrabble,
|
|
142
308
|
locale: Locale.EN_US,
|
|
@@ -169,37 +335,3 @@ export const englishUsSuperScrabble = new Config({
|
|
|
169
335
|
{ character: 'z', count: 2, score: 10 },
|
|
170
336
|
],
|
|
171
337
|
});
|
|
172
|
-
|
|
173
|
-
export const englishUsLiteraki = new Config({
|
|
174
|
-
...literaki,
|
|
175
|
-
locale: Locale.EN_US,
|
|
176
|
-
name: 'Literaxx',
|
|
177
|
-
tiles: [
|
|
178
|
-
{ character: 'a', count: 9, score: 1 },
|
|
179
|
-
{ character: 'b', count: 2, score: 3 },
|
|
180
|
-
{ character: 'c', count: 2, score: 3 },
|
|
181
|
-
{ character: 'd', count: 4, score: 2 },
|
|
182
|
-
{ character: 'e', count: 12, score: 1 },
|
|
183
|
-
{ character: 'f', count: 2, score: 4 },
|
|
184
|
-
{ character: 'g', count: 3, score: 2 },
|
|
185
|
-
{ character: 'h', count: 2, score: 4 },
|
|
186
|
-
{ character: 'i', count: 9, score: 1 },
|
|
187
|
-
{ character: 'j', count: 1, score: 8 },
|
|
188
|
-
{ character: 'k', count: 1, score: 5 },
|
|
189
|
-
{ character: 'l', count: 4, score: 1 },
|
|
190
|
-
{ character: 'm', count: 2, score: 3 },
|
|
191
|
-
{ character: 'n', count: 6, score: 1 },
|
|
192
|
-
{ character: 'o', count: 8, score: 1 },
|
|
193
|
-
{ character: 'p', count: 2, score: 3 },
|
|
194
|
-
{ character: 'q', count: 1, score: 10 },
|
|
195
|
-
{ character: 'r', count: 6, score: 1 },
|
|
196
|
-
{ character: 's', count: 4, score: 1 },
|
|
197
|
-
{ character: 't', count: 6, score: 1 },
|
|
198
|
-
{ character: 'u', count: 4, score: 1 },
|
|
199
|
-
{ character: 'v', count: 2, score: 4 },
|
|
200
|
-
{ character: 'w', count: 2, score: 4 },
|
|
201
|
-
{ character: 'x', count: 1, score: 8 },
|
|
202
|
-
{ character: 'y', count: 2, score: 4 },
|
|
203
|
-
{ character: 'z', count: 1, score: 10 },
|
|
204
|
-
],
|
|
205
|
-
});
|