koishi-plugin-wordle-game 2.6.7 → 2.7.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.
Files changed (40) hide show
  1. package/LICENSE-APACHE +178 -0
  2. package/LICENSE-MIT +25 -0
  3. package/{readme.md → README.md} +170 -168
  4. package/lib/assets/Wordle//350/257/215/346/261/207/badWordsList.json +1002 -1002
  5. package/lib/assets/Wordle//350/257/215/346/261/207/lowerCaseWordArray.json +2317 -2317
  6. package/lib/assets/commonIdiomsList.json +7210 -7210
  7. package/lib/assets//346/261/211/345/205/234/handle.css +2495 -2495
  8. package/lib/assets//350/257/215/345/275/261/ciying.css +1216 -1216
  9. package/lib/assets//350/257/215/345/275/261/esm.js +21 -21
  10. package/lib/assets//350/257/215/345/275/261/esm2.js +1343 -1343
  11. package/lib/assets//350/257/215/345/275/261/esm2017.js +1452 -1452
  12. package/lib/assets//350/257/215/345/275/261/main.js +6816 -6816
  13. package/lib/assets//350/257/215/345/275/261/vendor.js +1339 -1339
  14. package/lib/commands/basic.d.ts +2 -0
  15. package/lib/commands/game.d.ts +2 -0
  16. package/lib/commands/leaderboard.d.ts +2 -0
  17. package/lib/commands/lookup.d.ts +2 -0
  18. package/lib/commands/progress.d.ts +2 -0
  19. package/lib/config.d.ts +33 -0
  20. package/lib/constants.d.ts +10 -0
  21. package/lib/context.d.ts +33 -0
  22. package/lib/html/template.d.ts +5 -0
  23. package/lib/html/tiles.d.ts +10 -0
  24. package/lib/index.d.ts +4 -178
  25. package/lib/index.js +17383 -17124
  26. package/lib/services/database.d.ts +18 -0
  27. package/lib/services/files.d.ts +6 -0
  28. package/lib/services/leaderboard.d.ts +8 -0
  29. package/lib/services/message.d.ts +6 -0
  30. package/lib/services/network.d.ts +25 -0
  31. package/lib/services/renderer.d.ts +6 -0
  32. package/lib/services/user.d.ts +2 -0
  33. package/lib/types.d.ts +223 -0
  34. package/lib/utils/idiom.d.ts +5 -0
  35. package/lib/utils/pinyin.d.ts +67 -0
  36. package/lib/utils/string.d.ts +10 -0
  37. package/lib/utils/time.d.ts +3 -0
  38. package/lib/utils/validation.d.ts +7 -0
  39. package/lib/utils/wordle.d.ts +23 -0
  40. package/package.json +66 -65
package/LICENSE-APACHE ADDED
@@ -0,0 +1,178 @@
1
+ # Apache License
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
package/LICENSE-MIT ADDED
@@ -0,0 +1,25 @@
1
+ # MIT License
2
+
3
+ Permission is hereby granted, free of charge, to any
4
+ person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the
6
+ Software without restriction, including without
7
+ limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software
10
+ is furnished to do so, subject to the following
11
+ conditions:
12
+
13
+ The above copyright notice and this permission notice
14
+ shall be included in all copies or substantial portions
15
+ of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
+ DEALINGS IN THE SOFTWARE.
@@ -1,168 +1,170 @@
1
- koishi-plugin-wordle-game
2
- ========================
3
-
4
- [<img alt="github" src="https://img.shields.io/badge/github-araea/wordle_game-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-wordle-game)
5
- [<img alt="npm" src="https://img.shields.io/npm/v/koishi-plugin-wordle-game.svg?style=for-the-badge&color=fc8d62&logo=npm" height="20">](https://www.npmjs.com/package/koishi-plugin-wordle-game)
6
-
7
- Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。
8
-
9
- 支持以下游戏:
10
-
11
- - [Wordle](https://www.nytimes.com/games/wordle/index.html)
12
- - [汉兜](https://handle.antfu.me/)
13
- - [词影](https://cy.surprising.studio/)
14
- - [Numberle](https://dduarte.github.io/numberle/)
15
- - [Math](https://numberle.org/)
16
- - [Lewdle](https://www.lewdlegame.com/App)
17
-
18
- ## 使用
19
-
20
- 1. 启用 `monetary`, `database`, `puppeteer` 服务。
21
- 2. 设置指令别名。
22
- 3. 输入 `wordleGame.开始` 指令以引导游戏。
23
- 4. 输入猜测词。
24
-
25
- ## 注意事项
26
-
27
- - 若输入成语时出现未知错误,可检查 `data/wordleGame/idioms.json` 文件,确认拼音是否正确。
28
-
29
- ## 特性
30
-
31
- - 词影模式拥有细分排行榜,可通过 `help` 指令探索。
32
- - 可在 `idioms.json` 中自行添加成语(如“原神启动”),注意 JSON 格式,末项无逗号。
33
-
34
- ## 关键指令
35
-
36
- ### `wordleGame.开始 [待猜词长度]`
37
-
38
- 开始游戏引导。
39
-
40
- #### `wordleGame.开始.<模式> [待猜词长度]`
41
-
42
- - **可用模式**:
43
- - `经典`, `CET4/6`, `GMAT`, `GRE`, `IELTS`, `SAT`, `TOEFL`, `考研`, `专八/四`
44
- - `ALL`, `Lewdle`, `Numberle`, `Math`, `汉兜`, `词影`
45
-
46
- - **通用选项**:
47
-
48
- - `--hard` (困难模式)
49
- - 绿色线索必须保持固定。
50
- - 黄色线索必须重复使用。
51
- - 词影模式下,提高匹配难度。
52
-
53
- - `--uhard` (超困难模式)
54
- - 基于困难模式。
55
- - 黄色线索必须移离其原位。
56
- - 灰色线索不得再次使用。
57
-
58
- - `--absurd` (荒谬模式)
59
- - AI 将尽量避免给出答案,每次猜测仅透露最少信息,甚至可能更换秘密词。
60
- - [玩法参考](https://qntm.org/absurdle)
61
-
62
- - `--challenge` (挑战模式)
63
- - 高级玩家限定。要求从一个给定的目标词出发,反向推导秘密词。
64
- - [玩法参考](https://qntm.org/challenge)
65
-
66
- - `--wordles <数量>`
67
- - 同时猜测多个词,默认数量 1 ~ 4,可配置。
68
-
69
- - **汉兜 & 词影专属选项**:
70
-
71
- - `--free` (自由模式)
72
- - 任意四字词语均可作为猜测词。
73
-
74
- - `--all` (全成语模式)
75
- - 开启后,词库扩展至 29766+ (含生僻字,极难)。
76
- - 关闭时,使用 7208 个常用成语 (义务教育)。
77
-
78
- > 注:经典模式和汉兜模式可投入货币,获胜有奖励。可同时启用多种难度模式。
79
-
80
- ### `wordleGame.猜 <猜测内容>`
81
-
82
- - 猜单词、成语等。
83
- - 选项:
84
- - `-r`: 随机猜测一次。
85
-
86
- ---
87
-
88
- ## 测试图
89
-
90
- <!-- markdownlint-disable MD033 -->
91
- <details>
92
- <summary>点击展开/折叠</summary>
93
-
94
- - **经典模式**
95
- ![经典模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/dd55af6e-f38d-4f95-9bed-9d6ba967c429)
96
- - **汉兜模式**
97
- ![汉兜模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/d968f7fe-544b-4d29-a825-8ae59109a50b)
98
- - **词影模式**
99
- ![词影模式1](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b11d911b-f534-4800-aef6-e42ef184803c)
100
- ![词影模式2](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/45810d3f-732e-4338-9351-b21f4dd9a814)
101
- - **方程式模式**
102
- ![方程式模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b792df4b-baa2-4453-83f6-6fb58784b921)
103
- - **游戏引导**
104
- ![游戏引导](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/80bb3c2b-d41c-44e0-8a4d-acd1845c1644)
105
- - **进度查询**
106
- ![进度查询](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/65e28147-feef-4794-bbbb-9565c65cae36)
107
- - **多开模式**
108
- ![多开模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/86db4fcf-9a6f-4b15-8c50-6f2d7ea017e3)
109
- - **拼音速查**
110
- ![拼音速查](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/669c625a-9360-4d88-a0ec-01103e82d9f4)
111
- - **查单词 (英译中/英译英)**
112
- ![英译中](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/c1913df7-1e1a-4324-a228-ed1679e4e330)
113
- ![英译英](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/18f7806e-641c-4135-8255-73e139e7e427)
114
- - **查成语**
115
- ![查成语](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/76f88dd3-e0b1-48d4-bac7-6cafb0d996c7)
116
- - **玩家记录**
117
- ![玩家记录](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/a14dd774-4148-4a0e-b7bc-deab8180c919)
118
- - **单词查找器**
119
- ![单词查找器](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/4bad2757-8b49-4e39-b2b3-a311e6cfc08f)
120
- - **排行榜**
121
- ![排行榜](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/9d87c34f-353c-49ed-a885-5ac8128dbd4a)
122
-
123
- </details>
124
- <!-- markdownlint-enable MD033 -->
125
-
126
- ## 致谢
127
-
128
- - **框架**: [Koishi](https://koishi.chat/)
129
- - **纠错**: ly、麦神等朋友
130
- - **顾问**: [Akisa](https://forum.koishi.xyz/u/akisa/summary)
131
- - **数据源**:
132
- - [汉典](https://www.zdic.net/)
133
- - [百度汉语](https://hanyu.baidu.com/)
134
- - [WordFinder](https://wordword.org/)
135
- - [skywind3000/ECDICT](https://github.com/skywind3000/ECDICT)
136
- - **灵感与样式**:
137
- - [Wordle](https://www.nytimes.com/games/wordle/index.html)
138
- - [汉兜](https://handle.antfu.me/)
139
- - [词影](https://cy.surprising.studio/)
140
- - [Numberle (dduarte)](https://dduarte.github.io/numberle/)
141
- - [Numberle (numberle.org)](https://numberle.org/)
142
- - [LewdleGame](https://www.lewdlegame.com/App)
143
- - [WordlePlay](https://wordleplay.com/wordle-games)
144
- - **词典参考**:
145
- - [koishi-plugin-wordle](https://www.npmjs.com/package/koishi-plugin-wordle)
146
- - [nonebot-plugin-wordle](https://github.com/noneplugin/nonebot-plugin-wordle)
147
- - [Wordle 2315 words list](https://gist.github.com/DevilXD/6ad6cc1fe37872d069a795edd51233b2#file-wordle_words-txt)
148
-
149
- ## QQ 群
150
-
151
- - `956758505`
152
-
153
- <br>
154
-
155
- #### License
156
-
157
- <sup>
158
- Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
159
- 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
160
- </sup>
161
-
162
- <br>
163
-
164
- <sub>
165
- Unless you explicitly state otherwise, any contribution intentionally submitted
166
- for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
167
- be dual licensed as above, without any additional terms or conditions.
168
- </sub>
1
+ koishi-plugin-wordle-game
2
+ ========================
3
+
4
+ [<img alt="github" src="https://img.shields.io/badge/github-araea/wordle_game-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-wordle-game)
5
+ [<img alt="npm" src="https://img.shields.io/npm/v/koishi-plugin-wordle-game.svg?style=for-the-badge&color=fc8d62&logo=npm" height="20">](https://www.npmjs.com/package/koishi-plugin-wordle-game)
6
+
7
+ Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。
8
+
9
+ 支持以下游戏:
10
+
11
+ - [Wordle](https://www.nytimes.com/games/wordle/index.html)
12
+ - [汉兜](https://handle.antfu.me/)
13
+ - [词影](https://cy.surprising.studio/)
14
+ - [Numberle](https://dduarte.github.io/numberle/)
15
+ - [Math](https://numberle.org/)
16
+ - [Lewdle](https://www.lewdlegame.com/App)
17
+
18
+ ## 使用
19
+
20
+ 1. 启用 `monetary`, `database`, `puppeteer` 服务。
21
+ 2. 设置指令别名。
22
+ 3. 输入 `wordleGame.开始` 指令以引导游戏。
23
+ 4. 输入猜测词。
24
+
25
+ ## 注意事项
26
+
27
+ - 若输入成语时出现未知错误,可检查 `data/wordleGame/idioms.json` 文件,确认拼音是否正确。
28
+ - 汉兜模式遇到词库里没有的四字词时,会调用配置项「拼音接口设置」里的 OpenAI 兼容接口补全拼音。
29
+ 该项默认留空,留空时不会发起任何请求,只提示手动补全。
30
+
31
+ ## 特性
32
+
33
+ - 词影模式拥有细分排行榜,可通过 `help` 指令探索。
34
+ - 可在 `idioms.json` 中自行添加成语(如“原神启动”),注意 JSON 格式,末项无逗号。
35
+
36
+ ## 关键指令
37
+
38
+ ### `wordleGame.开始 [待猜词长度]`
39
+
40
+ 开始游戏引导。
41
+
42
+ #### `wordleGame.开始.<模式> [待猜词长度]`
43
+
44
+ - **可用模式**:
45
+ - `经典`, `CET4/6`, `GMAT`, `GRE`, `IELTS`, `SAT`, `TOEFL`, `考研`, `专八/四`
46
+ - `ALL`, `Lewdle`, `Numberle`, `Math`, `汉兜`, `词影`
47
+
48
+ - **通用选项**:
49
+
50
+ - `--hard` (困难模式)
51
+ - 绿色线索必须保持固定。
52
+ - 黄色线索必须重复使用。
53
+ - 词影模式下,提高匹配难度。
54
+
55
+ - `--uhard` (超困难模式)
56
+ - 基于困难模式。
57
+ - 黄色线索必须移离其原位。
58
+ - 灰色线索不得再次使用。
59
+
60
+ - `--absurd` (荒谬模式)
61
+ - AI 将尽量避免给出答案,每次猜测仅透露最少信息,甚至可能更换秘密词。
62
+ - [玩法参考](https://qntm.org/absurdle)
63
+
64
+ - `--challenge` (挑战模式)
65
+ - 高级玩家限定。要求从一个给定的目标词出发,反向推导秘密词。
66
+ - [玩法参考](https://qntm.org/challenge)
67
+
68
+ - `--wordles <数量>`
69
+ - 同时猜测多个词,默认数量 1 ~ 4,可配置。
70
+
71
+ - **汉兜 & 词影专属选项**:
72
+
73
+ - `--free` (自由模式)
74
+ - 任意四字词语均可作为猜测词。
75
+
76
+ - `--all` (全成语模式)
77
+ - 开启后,词库扩展至 29766+ (含生僻字,极难)。
78
+ - 关闭时,使用 7208 个常用成语 (义务教育)。
79
+
80
+ > 注:经典模式和汉兜模式可投入货币,获胜有奖励。可同时启用多种难度模式。
81
+
82
+ ### `wordleGame.猜 <猜测内容>`
83
+
84
+ - 猜单词、成语等。
85
+ - 选项:
86
+ - `-r`: 随机猜测一次。
87
+
88
+ ---
89
+
90
+ ## 测试图
91
+
92
+ <!-- markdownlint-disable MD033 -->
93
+ <details>
94
+ <summary>点击展开/折叠</summary>
95
+
96
+ - **经典模式**
97
+ ![经典模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/dd55af6e-f38d-4f95-9bed-9d6ba967c429)
98
+ - **汉兜模式**
99
+ ![汉兜模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/d968f7fe-544b-4d29-a825-8ae59109a50b)
100
+ - **词影模式**
101
+ ![词影模式1](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b11d911b-f534-4800-aef6-e42ef184803c)
102
+ ![词影模式2](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/45810d3f-732e-4338-9351-b21f4dd9a814)
103
+ - **方程式模式**
104
+ ![方程式模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b792df4b-baa2-4453-83f6-6fb58784b921)
105
+ - **游戏引导**
106
+ ![游戏引导](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/80bb3c2b-d41c-44e0-8a4d-acd1845c1644)
107
+ - **进度查询**
108
+ ![进度查询](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/65e28147-feef-4794-bbbb-9565c65cae36)
109
+ - **多开模式**
110
+ ![多开模式](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/86db4fcf-9a6f-4b15-8c50-6f2d7ea017e3)
111
+ - **拼音速查**
112
+ ![拼音速查](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/669c625a-9360-4d88-a0ec-01103e82d9f4)
113
+ - **查单词 (英译中/英译英)**
114
+ ![英译中](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/c1913df7-1e1a-4324-a228-ed1679e4e330)
115
+ ![英译英](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/18f7806e-641c-4135-8255-73e139e7e427)
116
+ - **查成语**
117
+ ![查成语](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/76f88dd3-e0b1-48d4-bac7-6cafb0d996c7)
118
+ - **玩家记录**
119
+ ![玩家记录](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/a14dd774-4148-4a0e-b7bc-deab8180c919)
120
+ - **单词查找器**
121
+ ![单词查找器](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/4bad2757-8b49-4e39-b2b3-a311e6cfc08f)
122
+ - **排行榜**
123
+ ![排行榜](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/9d87c34f-353c-49ed-a885-5ac8128dbd4a)
124
+
125
+ </details>
126
+ <!-- markdownlint-enable MD033 -->
127
+
128
+ ## 致谢
129
+
130
+ - **框架**: [Koishi](https://koishi.chat/)
131
+ - **纠错**: ly、麦神等朋友
132
+ - **顾问**: [Akisa](https://forum.koishi.xyz/u/akisa/summary)
133
+ - **数据源**:
134
+ - [汉典](https://www.zdic.net/)
135
+ - [百度汉语](https://hanyu.baidu.com/)
136
+ - [WordFinder](https://wordword.org/)
137
+ - [skywind3000/ECDICT](https://github.com/skywind3000/ECDICT)
138
+ - **灵感与样式**:
139
+ - [Wordle](https://www.nytimes.com/games/wordle/index.html)
140
+ - [汉兜](https://handle.antfu.me/)
141
+ - [词影](https://cy.surprising.studio/)
142
+ - [Numberle (dduarte)](https://dduarte.github.io/numberle/)
143
+ - [Numberle (numberle.org)](https://numberle.org/)
144
+ - [LewdleGame](https://www.lewdlegame.com/App)
145
+ - [WordlePlay](https://wordleplay.com/wordle-games)
146
+ - **词典参考**:
147
+ - [koishi-plugin-wordle](https://www.npmjs.com/package/koishi-plugin-wordle)
148
+ - [nonebot-plugin-wordle](https://github.com/noneplugin/nonebot-plugin-wordle)
149
+ - [Wordle 2315 words list](https://gist.github.com/DevilXD/6ad6cc1fe37872d069a795edd51233b2#file-wordle_words-txt)
150
+
151
+ ## QQ 群
152
+
153
+ - `956758505`
154
+
155
+ <br>
156
+
157
+ #### License
158
+
159
+ <sup>
160
+ Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
161
+ 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
162
+ </sup>
163
+
164
+ <br>
165
+
166
+ <sub>
167
+ Unless you explicitly state otherwise, any contribution intentionally submitted
168
+ for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
169
+ be dual licensed as above, without any additional terms or conditions.
170
+ </sub>