Skip to main content

nonebot-plugin-wordle

适用于 Nonebot2 的 wordle 猜单词插件

安装

  • 使用 nb-cli
nb plugin install nonebot_plugin_wordle
  • 使用 pip
pip install nonebot_plugin_wordle

使用

以下命令需要加命令前缀 (默认为/),可自行设置为空

@机器人 + 猜单词/wordle

绿色块代表此单词中有此字母且位置正确;

黄色块代表此单词中有此字母,但该字母所处位置不对;

黄色块至多着色 此单词中有这个字母的数量 次;

灰色块代表此单词中没有此字母;

猜出单词或用光次数则游戏结束。

可发送“结束”结束游戏;可发送“提示”查看提示。

可使用 -l / --length 指定单词长度,默认为 5

可使用 -d / --dictionary 指定词典,默认为 CET4

支持的词典:GRE、考研、GMAT、专四、TOEFL、SAT、专八、IELTS、CET4、CET6

示例

说明

黄色块着色规则为:

黄色块至多着色 此单词中有这个字母的数量 次。

针对这个规则,下面的例子能帮您更好理解,并且更好猜测词语:

假设答案是 xOOxxxxx。(这个词并不存在,只是为了方便理解)

当用户猜测 xxxxxxxO 时,O这个字母由于存在但位置不同,会被着为黄色。

当用户猜测 xxxxxxOO 时,由于原先单词中有两个O,所以两个O都会被着色。

当用户猜测 xxxxxOOO 时,由于原先单词只有两个O,因此前两个O会被着色,第3个会被着为灰色。

当用户猜测 xxOxxxxO 时,第1个O由于位置正确,着为绿色。第2个O着为黄色。

当用户猜测 xxOxxxOO 时,第1个O着绿色,第2个O着黄色,第3个O着灰色。

当用户猜测 xOOxxxxO 时,前两个O着绿色,第3个O着灰色。

特别感谢

Metadata

Release files for nonebot_plugin_wordle 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot_plugin_wordle 0.4.5
File Size Uploaded
nonebot_plugin_wordle-0.4.5.tar.gz 2.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot_plugin_wordle 0.4.5
File Interpreter ABI Platform
nonebot_plugin_wordle-0.4.5-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 MB

Release files / nonebot_plugin_wordle-0.4.5.tar.gz

Download URL nonebot_plugin_wordle-0.4.5.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
929e107579feb50865fd3eba6c32a104ab26e060e2d18e01b8ea6803b1207b62
BLAKE2b-256 checksum
How to use checksums
608518e765d0aaf573703917a2333cb1f4321f172883e87dbf893a58ba7ecef4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.11.0 Linux/6.5.0-1025-azure

Release files / nonebot_plugin_wordle-0.4.5-py3-none-any.whl

Download URL nonebot_plugin_wordle-0.4.5-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c8e88371e2f25c38e3571ca448c2056644e8970ba7ac9bdf715b396cd178c135
BLAKE2b-256 checksum
How to use checksums
ca8702279c72a30464dbc93c589eb4e0478e626ffcaeacd10e3e4d692c4f4b5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.11.0 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

0.4.5 This release

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page