koishi-plugin-wordle-game 2.0.8 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -887,7 +887,7 @@ async function apply(ctx, config) {
887
887
  imageBuffer = await generateImageForCiying(emptyGridHtmlWithBorder + emptyGridHtml, 6 + wordlesNum - 1);
888
888
  }
889
889
  else {
890
- const emptyGridHtml = isAbsurdMode ? generateEmptyGridHtml(1, guessWordLength) : exam === 'Math' ? generateEmptyGridHtml(6, guessWordLength) : generateEmptyGridHtml(guessWordLength + 1 + wordlesNum - 1, guessWordLength);
890
+ const emptyGridHtml = isAbsurdMode ? generateEmptyGridHtml(1, guessWordLength) : exam === 'Math' ? generateEmptyGridHtml(6 + wordlesNum - 1, guessWordLength) : generateEmptyGridHtml(guessWordLength + 1 + wordlesNum - 1, guessWordLength);
891
891
  const styledHtml = generateStyledHtml(guessWordLength + 1);
892
892
  imageBuffer = await generateImage(styledHtml, emptyGridHtml);
893
893
  }
@@ -2050,7 +2050,20 @@ ${rankType3.map((type, index) => `${index + 1}. ${type}`).join('\n')}
2050
2050
  const correctLetters = gameInfo.correctLetters;
2051
2051
  const previousGuess = gameInfo.previousGuess;
2052
2052
  const previousGuessIdioms = gameInfo.previousGuessIdioms;
2053
- const config = isHardMode ? main_js_1.Xl : main_js_1.Vl;
2053
+ const defaultModeSettings = {
2054
+ keepShadow: !0,
2055
+ correctThreshold: .5,
2056
+ presentThreshold: 1,
2057
+ shiftFactor: .7,
2058
+ idiomLimit: 2e3
2059
+ };
2060
+ const hardModeSettings = {
2061
+ keepShadow: !1,
2062
+ correctThreshold: .3,
2063
+ presentThreshold: 1,
2064
+ shiftFactor: .7
2065
+ };
2066
+ const config = isHardMode ? hardModeSettings : defaultModeSettings;
2054
2067
  for (let i = 0; i < answerIdiom.length; i++) {
2055
2068
  const compareReslut = (0, main_js_1.Ot)(strokesData[answerIdiom[i]], strokesData[userInputIdiom[i]], null, config);
2056
2069
  compareReslut.match = answerIdiom[i] === userInputIdiom[i];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-wordle-game",
3
3
  "description": "欢迎来到 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](https://handle.antfu.me/) | [词影](https://cy.surprising.studio/) |... 猜单词|猜成语|猜数字|猜数学方程式|... 的小游戏,包含多种词库、多种主题、多种游戏设置和排行榜系统。",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/readme.md CHANGED
@@ -169,6 +169,10 @@ npm install koishi-plugin-wordle-game
169
169
  ### 汉兜模式
170
170
  ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/d968f7fe-544b-4d29-a825-8ae59109a50b)
171
171
 
172
+ ### 词影模式
173
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b11d911b-f534-4800-aef6-e42ef184803c)
174
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/45810d3f-732e-4338-9351-b21f4dd9a814)
175
+
172
176
  ### 方程式模式
173
177
  ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b792df4b-baa2-4453-83f6-6fb58784b921)
174
178