Skip to main content

Nonebot2 wordle猜单词插件

Project description

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着灰色。

特别感谢

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_wordle-0.4.4.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_wordle-0.4.4-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_wordle-0.4.4.tar.gz.

File metadata

  • Download URL: nonebot_plugin_wordle-0.4.4.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

File hashes

Hashes for nonebot_plugin_wordle-0.4.4.tar.gz
Algorithm Hash digest
SHA256 ea4bfe4f95563fdf12e60e39f15ca756cc4506aa00ef56842233a89b1debda50
MD5 fb8d9e2e6d08f090f765f4b82dab43fc
BLAKE2b-256 66b9e927ae25185c36d7a0a350657a031ffa942d9b62f26ec0c666583748cc27

See more details on using hashes here.

File details

Details for the file nonebot_plugin_wordle-0.4.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_wordle-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b38a3bdf6316362cb03a82664c0107e20ae99729a71ac9e39b6bbe303ec7b641
MD5 626815b1ee6463d8463a43be7b0fff3d
BLAKE2b-256 a787421b0d2ed8089d5349dda251fdab7099c21e5edce232e33a90ff9346ced0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page