scrabble-solver 2.14.0 → 2.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/.nx/workspace-data/file-map.json +438 -406
  2. package/.nx/workspace-data/lockfile.hash +1 -1
  3. package/.nx/workspace-data/parsed-lock-file.json +32 -56
  4. package/.nx/workspace-data/project-graph.json +32 -58
  5. package/README.md +12 -10
  6. package/lerna.json +1 -1
  7. package/package.json +12 -3
  8. package/packages/configs/build/games/index.d.ts +4 -3
  9. package/packages/configs/build/games/index.js +17 -9
  10. package/packages/configs/build/games/kelimelik.d.ts +16 -0
  11. package/packages/configs/build/games/kelimelik.js +64 -0
  12. package/packages/configs/build/games/literaki.d.ts +1 -2
  13. package/packages/configs/build/games/literaki.js +2 -2
  14. package/packages/configs/build/games/scrabble.d.ts +1 -2
  15. package/packages/configs/build/games/scrabble.js +2 -2
  16. package/packages/configs/build/games/superScrabble.d.ts +1 -2
  17. package/packages/configs/build/games/superScrabble.js +2 -2
  18. package/packages/configs/build/languages/index.d.ts +1 -0
  19. package/packages/configs/build/languages/index.js +1 -0
  20. package/packages/configs/build/languages/romanian.d.ts +1 -0
  21. package/packages/configs/build/languages/romanian.js +29 -1
  22. package/packages/configs/build/languages/turkish.d.ts +3 -0
  23. package/packages/configs/build/languages/turkish.js +75 -0
  24. package/packages/configs/package.json +3 -3
  25. package/packages/configs/src/games/index.ts +4 -3
  26. package/packages/configs/src/games/kelimelik.ts +62 -0
  27. package/packages/configs/src/games/literaki.ts +1 -3
  28. package/packages/configs/src/games/scrabble.ts +1 -3
  29. package/packages/configs/src/games/superScrabble.ts +1 -3
  30. package/packages/configs/src/languages/index.ts +1 -0
  31. package/packages/configs/src/languages/romanian.ts +30 -1
  32. package/packages/configs/src/languages/turkish.ts +75 -0
  33. package/packages/constants/build/index.js +2 -2
  34. package/packages/constants/package.json +1 -1
  35. package/packages/constants/src/index.ts +2 -2
  36. package/packages/dictionaries/package-lock.json +2 -2
  37. package/packages/dictionaries/package.json +4 -4
  38. package/packages/logger/package-lock.json +2 -2
  39. package/packages/logger/package.json +1 -1
  40. package/packages/scrabble-solver/.next/BUILD_ID +1 -1
  41. package/packages/scrabble-solver/.next/build-manifest.json +14 -14
  42. package/packages/scrabble-solver/.next/cache/.tsbuildinfo +1 -1
  43. package/packages/scrabble-solver/.next/cache/eslint/.cache_8dgz12 +1 -1
  44. package/packages/scrabble-solver/.next/cache/webpack/client-production/0.pack +0 -0
  45. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack +0 -0
  46. package/packages/scrabble-solver/.next/cache/webpack/client-production/index.pack.old +0 -0
  47. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/0.pack +0 -0
  48. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack +0 -0
  49. package/packages/scrabble-solver/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  50. package/packages/scrabble-solver/.next/cache/webpack/server-production/0.pack +0 -0
  51. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack +0 -0
  52. package/packages/scrabble-solver/.next/cache/webpack/server-production/index.pack.old +0 -0
  53. package/packages/scrabble-solver/.next/prerender-manifest.json +1 -1
  54. package/packages/scrabble-solver/.next/required-server-files.json +1 -1
  55. package/packages/scrabble-solver/.next/routes-manifest.json +1 -1
  56. package/packages/scrabble-solver/.next/server/chunks/331.js +3 -3
  57. package/packages/scrabble-solver/.next/server/chunks/807.js +1 -1
  58. package/packages/scrabble-solver/.next/server/chunks/911.js +1 -1
  59. package/packages/scrabble-solver/.next/server/chunks/977.js +1 -1
  60. package/packages/scrabble-solver/.next/server/middleware-build-manifest.js +1 -1
  61. package/packages/scrabble-solver/.next/server/pages/404.html +1 -1
  62. package/packages/scrabble-solver/.next/server/pages/404.js.nft.json +1 -1
  63. package/packages/scrabble-solver/.next/server/pages/500.html +1 -1
  64. package/packages/scrabble-solver/.next/server/pages/_app.js.nft.json +1 -1
  65. package/packages/scrabble-solver/.next/server/pages/api/dictionary/[locale]/[word].js +2 -2
  66. package/packages/scrabble-solver/.next/server/pages/index.html +1 -1
  67. package/packages/scrabble-solver/.next/server/pages/index.js +1 -1
  68. package/packages/scrabble-solver/.next/server/pages/index.js.nft.json +1 -1
  69. package/packages/scrabble-solver/.next/server/pages/index.json +1 -1
  70. package/packages/scrabble-solver/.next/server/pages-manifest.json +1 -1
  71. package/packages/scrabble-solver/.next/static/{TxfjxrH5h31sPQxPhrJzG → _wmO1o8nRNndcRUW0qFct}/_buildManifest.js +1 -1
  72. package/packages/scrabble-solver/.next/static/chunks/framework-a6ccb1a1ec9e2929.js +1 -0
  73. package/packages/scrabble-solver/.next/static/chunks/main-95ec913189851e35.js +1 -0
  74. package/packages/scrabble-solver/.next/static/chunks/pages/_app-079be27740c6daa8.js +1 -0
  75. package/packages/scrabble-solver/.next/static/chunks/pages/{index-86d9ad372c48c8b7.js → index-4143525ec0fa83bb.js} +1 -1
  76. package/packages/scrabble-solver/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  77. package/packages/scrabble-solver/.next/static/css/{14625ff7b4d265d0.css → ac3349339fcf58f2.css} +1 -1
  78. package/packages/scrabble-solver/.next/trace +45 -45
  79. package/packages/scrabble-solver/next-env.d.ts +1 -1
  80. package/packages/scrabble-solver/package-lock.json +2 -2
  81. package/packages/scrabble-solver/package.json +8 -8
  82. package/packages/scrabble-solver/public/service-worker.js +2 -2
  83. package/packages/scrabble-solver/public/service-worker.js.map +1 -1
  84. package/packages/scrabble-solver/src/components/Board/Board.tsx +3 -3
  85. package/packages/scrabble-solver/src/components/Radio/Radio.module.scss +3 -2
  86. package/packages/scrabble-solver/src/i18n/constants.ts +12 -1
  87. package/packages/scrabble-solver/src/i18n/i18n.ts +2 -0
  88. package/packages/scrabble-solver/src/i18n/languages/turkish.json +78 -0
  89. package/packages/scrabble-solver/src/icons/FlagTr.svg +4 -0
  90. package/packages/scrabble-solver/src/icons/index.ts +1 -0
  91. package/packages/scrabble-solver/src/pages/_app.tsx +11 -2
  92. package/packages/solver/package-lock.json +2 -2
  93. package/packages/solver/package.json +5 -5
  94. package/packages/types/build/Game.d.ts +1 -0
  95. package/packages/types/build/Game.js +1 -0
  96. package/packages/types/build/Locale.d.ts +2 -1
  97. package/packages/types/build/Locale.js +1 -0
  98. package/packages/types/package.json +2 -2
  99. package/packages/types/src/Game.ts +1 -0
  100. package/packages/types/src/Locale.ts +1 -0
  101. package/packages/word-definitions/build/crawl.js +1 -0
  102. package/packages/word-definitions/build/index.d.ts +1 -1
  103. package/packages/word-definitions/build/index.js +1 -3
  104. package/packages/word-definitions/build/languages/index.d.ts +1 -0
  105. package/packages/word-definitions/build/languages/index.js +2 -1
  106. package/packages/word-definitions/build/languages/turkish.d.ts +3 -0
  107. package/packages/word-definitions/build/languages/turkish.js +31 -0
  108. package/packages/word-definitions/build/lib/index.d.ts +3 -3
  109. package/packages/word-definitions/build/lib/index.js +17 -7
  110. package/packages/word-definitions/build/parse.js +1 -0
  111. package/packages/word-definitions/package-lock.json +2 -2
  112. package/packages/word-definitions/package.json +2 -2
  113. package/packages/word-definitions/src/__tests__/expected/tr-TR.lojik.json +4 -0
  114. package/packages/word-definitions/src/__tests__/input/tr-TR.lojik.html +1 -0
  115. package/packages/word-definitions/src/crawl.ts +2 -1
  116. package/packages/word-definitions/src/index.ts +1 -2
  117. package/packages/word-definitions/src/languages/index.ts +1 -0
  118. package/packages/word-definitions/src/languages/turkish.ts +32 -0
  119. package/packages/word-definitions/src/lib/index.ts +3 -3
  120. package/packages/word-definitions/src/parse.test.ts +1 -0
  121. package/packages/word-definitions/src/parse.ts +2 -1
  122. package/packages/word-lists/build/getWordList.js +1 -0
  123. package/packages/word-lists/build/languages/index.d.ts +1 -0
  124. package/packages/word-lists/build/languages/index.js +2 -1
  125. package/packages/word-lists/build/languages/turkish.d.ts +1 -0
  126. package/packages/word-lists/build/languages/turkish.js +10 -0
  127. package/packages/word-lists/package-lock.json +2 -2
  128. package/packages/word-lists/package.json +2 -2
  129. package/packages/word-lists/src/getWordList.ts +2 -1
  130. package/packages/word-lists/src/languages/index.ts +1 -0
  131. package/packages/word-lists/src/languages/turkish.ts +9 -0
  132. package/.nx/cache/d/server-process.json +0 -1
  133. package/.nx/cache/file-map.json +0 -2594
  134. package/.nx/cache/lockfile.hash +0 -1
  135. package/.nx/cache/nx_files.nxt +0 -0
  136. package/.nx/cache/parsed-lock-file.json +0 -31627
  137. package/.nx/cache/project-graph.json +0 -31916
  138. package/packages/scrabble-solver/.next/prerender-manifest.js +0 -1
  139. package/packages/scrabble-solver/.next/static/chunks/framework-c623a49d0bf89652.js +0 -49
  140. package/packages/scrabble-solver/.next/static/chunks/main-8b0b4e610892a916.js +0 -1
  141. package/packages/scrabble-solver/.next/static/chunks/pages/_app-2912876c7b6e698e.js +0 -17
  142. package/packages/scrabble-solver/.next/static/chunks/polyfills-78c92fac7aa8fdd8.js +0 -1
  143. /package/packages/scrabble-solver/.next/static/{TxfjxrH5h31sPQxPhrJzG → _wmO1o8nRNndcRUW0qFct}/_ssgManifest.js +0 -0
@@ -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;
@@ -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
- const literaki = {
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;
@@ -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
- const scrabble = {
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
- const superScrabble = {
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;
@@ -5,3 +5,4 @@ export * from './persian';
5
5
  export * from './polish';
6
6
  export * from './romanian';
7
7
  export * from './spanish';
8
+ export * from './turkish';
@@ -21,3 +21,4 @@ __exportStar(require("./persian"), exports);
21
21
  __exportStar(require("./polish"), exports);
22
22
  __exportStar(require("./romanian"), exports);
23
23
  __exportStar(require("./spanish"), exports);
24
+ __exportStar(require("./turkish"), exports);
@@ -1,2 +1,3 @@
1
1
  import { Config } from '@scrabble-solver/types';
2
2
  export declare const romanianScrabble: Config;
3
+ export declare const romanianSuperScrabble: Config;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.romanianScrabble = void 0;
3
+ exports.romanianSuperScrabble = exports.romanianScrabble = void 0;
4
4
  const types_1 = require("@scrabble-solver/types");
5
5
  const games_1 = require("../games");
6
6
  exports.romanianScrabble = new types_1.Config({
@@ -34,3 +34,31 @@ exports.romanianScrabble = new types_1.Config({
34
34
  { character: 'z', count: 1, score: 10 },
35
35
  ],
36
36
  });
37
+ exports.romanianSuperScrabble = new types_1.Config({
38
+ ...games_1.superScrabble,
39
+ locale: types_1.Locale.RO_RO,
40
+ tiles: [
41
+ { character: 'a', count: 22, score: 1 },
42
+ { character: 'b', count: 4, score: 9 },
43
+ { character: 'c', count: 10, score: 1 },
44
+ { character: 'd', count: 8, score: 2 },
45
+ { character: 'e', count: 18, score: 1 },
46
+ { character: 'f', count: 4, score: 8 },
47
+ { character: 'g', count: 4, score: 9 },
48
+ { character: 'h', count: 2, score: 10 },
49
+ { character: 'i', count: 20, score: 1 },
50
+ { character: 'j', count: 2, score: 10 },
51
+ { character: 'l', count: 8, score: 1 },
52
+ { character: 'm', count: 6, score: 4 },
53
+ { character: 'n', count: 12, score: 1 },
54
+ { character: 'o', count: 10, score: 1 },
55
+ { character: 'p', count: 8, score: 2 },
56
+ { character: 'r', count: 14, score: 1 },
57
+ { character: 's', count: 10, score: 1 },
58
+ { character: 't', count: 14, score: 1 },
59
+ { character: 'u', count: 12, score: 1 },
60
+ { character: 'v', count: 4, score: 8 },
61
+ { character: 'x', count: 2, score: 10 },
62
+ { character: 'z', count: 2, score: 10 },
63
+ ],
64
+ });
@@ -0,0 +1,3 @@
1
+ import { Config } from '@scrabble-solver/types';
2
+ export declare const turkishKelimelik: Config;
3
+ export declare const turkishScrabble: Config;
@@ -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
+ });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/configs",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
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.14.0",
27
- "@scrabble-solver/types": "^2.14.0"
26
+ "@scrabble-solver/constants": "^2.15.1",
27
+ "@scrabble-solver/types": "^2.15.1"
28
28
  },
29
29
  "gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
30
30
  }
@@ -1,3 +1,4 @@
1
- export { default as literaki } from './literaki';
2
- export { default as scrabble } from './scrabble';
3
- export { default as superScrabble } from './superScrabble';
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
+ };
@@ -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;
@@ -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;
@@ -5,3 +5,4 @@ export * from './persian';
5
5
  export * from './polish';
6
6
  export * from './romanian';
7
7
  export * from './spanish';
8
+ export * from './turkish';
@@ -1,6 +1,6 @@
1
1
  import { Config, Locale } from '@scrabble-solver/types';
2
2
 
3
- import { scrabble } from '../games';
3
+ import { scrabble, superScrabble } from '../games';
4
4
 
5
5
  export const romanianScrabble = new Config({
6
6
  ...scrabble,
@@ -33,3 +33,32 @@ export const romanianScrabble = new Config({
33
33
  { character: 'z', count: 1, score: 10 },
34
34
  ],
35
35
  });
36
+
37
+ export const romanianSuperScrabble = new Config({
38
+ ...superScrabble,
39
+ locale: Locale.RO_RO,
40
+ tiles: [
41
+ { character: 'a', count: 22, score: 1 },
42
+ { character: 'b', count: 4, score: 9 },
43
+ { character: 'c', count: 10, score: 1 },
44
+ { character: 'd', count: 8, score: 2 },
45
+ { character: 'e', count: 18, score: 1 },
46
+ { character: 'f', count: 4, score: 8 },
47
+ { character: 'g', count: 4, score: 9 },
48
+ { character: 'h', count: 2, score: 10 },
49
+ { character: 'i', count: 20, score: 1 },
50
+ { character: 'j', count: 2, score: 10 },
51
+ { character: 'l', count: 8, score: 1 },
52
+ { character: 'm', count: 6, score: 4 },
53
+ { character: 'n', count: 12, score: 1 },
54
+ { character: 'o', count: 10, score: 1 },
55
+ { character: 'p', count: 8, score: 2 },
56
+ { character: 'r', count: 14, score: 1 },
57
+ { character: 's', count: 10, score: 1 },
58
+ { character: 't', count: 14, score: 1 },
59
+ { character: 'u', count: 12, score: 1 },
60
+ { character: 'v', count: 4, score: 8 },
61
+ { character: 'x', count: 2, score: 10 },
62
+ { character: 'z', count: 2, score: 10 },
63
+ ],
64
+ });
@@ -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
+ });
@@ -8,5 +8,5 @@ exports.BONUS_CHARACTER = 'BONUS_CHARACTER';
8
8
  exports.BONUS_WORD = 'BONUS_WORD';
9
9
  exports.EMPTY_CELL = ' ';
10
10
  exports.NO_BONUS = { characterMultiplier: 1, wordMultiplier: 1 };
11
- exports.CONSONANTS = 'bcćdfghjklłmnńñpqrsśtvwxzźż'.split('');
12
- exports.VOWELS = 'aąäeęioóöuüy'.split('');
11
+ exports.CONSONANTS = 'bcçćdfgğhjklłmnńñpqrsşśtvwxzźż'.split('');
12
+ exports.VOWELS = 'aąäeęioóöuüyı'.split('');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/constants",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
4
4
  "description": "Scrabble Solver 2 - Constants",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -12,6 +12,6 @@ export const EMPTY_CELL = ' ';
12
12
 
13
13
  export const NO_BONUS = { characterMultiplier: 1, wordMultiplier: 1 };
14
14
 
15
- export const CONSONANTS = 'bcćdfghjklłmnńñpqrsśtvwxzźż'.split('');
15
+ export const CONSONANTS = 'bcçćdfgğhjklłmnńñpqrsşśtvwxzźż'.split('');
16
16
 
17
- export const VOWELS = 'aąäeęioóöuüy'.split('');
17
+ export const VOWELS = 'aąäeęioóöuüyı'.split('');
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@scrabble-solver/dictionaries",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@scrabble-solver/dictionaries",
9
- "version": "2.14.0",
9
+ "version": "2.15.1",
10
10
  "license": "CC-BY-NC-ND-4.0",
11
11
  "dependencies": {
12
12
  "@kamilmielnik/trie": "^3.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/dictionaries",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
4
4
  "description": "Scrabble Solver 2 - Dictionaries",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@kamilmielnik/trie": "^3.0.0",
33
- "@scrabble-solver/logger": "^2.14.0",
34
- "@scrabble-solver/types": "^2.14.0",
35
- "@scrabble-solver/word-lists": "^2.14.0"
33
+ "@scrabble-solver/logger": "^2.15.1",
34
+ "@scrabble-solver/types": "^2.15.1",
35
+ "@scrabble-solver/word-lists": "^2.15.1"
36
36
  },
37
37
  "gitHead": "1e2d1ad49a288d4a44196d8e3336740da132c637"
38
38
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@scrabble-solver/logger",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@scrabble-solver/logger",
9
- "version": "2.14.0",
9
+ "version": "2.15.1",
10
10
  "license": "CC-BY-NC-ND-4.0",
11
11
  "dependencies": {
12
12
  "winston": "^3.13.1"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/logger",
3
- "version": "2.14.0",
3
+ "version": "2.15.1",
4
4
  "description": "Scrabble Solver 2 - Logger",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1 +1 @@
1
- TxfjxrH5h31sPQxPhrJzG
1
+ _wmO1o8nRNndcRUW0qFct