← 返回
内容创作

Sudoku

Fetch Sudoku puzzles and store them as JSON in the workspace; render images on demand; reveal solutions later.
获取数独题目并以 JSON 形式保存在工作区;按需渲染图像;随后揭示解答。
odrobnik
内容创作 clawhub v2.6.0 2 版本 99218.1 Key: 无需
★ 4
Stars
📥 4,488
下载
💾 425
安装
2
版本
#latest

概述

Sudoku

Overview

Fetch, render, and reveal Sudoku puzzles. Use sudoku.py to get new puzzles from sudokuonline.io, generate printable PDFs or images, and reveal solutions.

For details on the saved JSON format, see DATA_FORMAT.md.

Available Puzzle Types

  • kids4n: Kids 4x4
  • kids4l: Kids 4x4 with Letters
  • kids6: Kids 6x6
  • kids6l: Kids 6x6 with Letters
  • easy9: Classic 9x9 (Easy)
  • medium9: Classic 9x9 (Medium)
  • hard9: Classic 9x9 (Hard)
  • evil9: Classic 9x9 (Evil)

Setup / Requirements

  • Binaries: python3
  • Python libs:

```bash

python3 -m pip install requests Pillow lzstring

```

Get a Puzzle

Fetches a new puzzle and stores it as JSON. Output is JSON by default (use --text for human-readable output).

Use --count N to fetch/store multiple puzzles in one call. If a batch does not contain enough unseen puzzles, the command will fetch additional batches until it has enough.

Use --id to select a specific source puzzle by matching any unique part of its UUID. If multiple IDs match, the command errors and lists candidates.

Get a Classic Easy puzzle:

./scripts/sudoku.py get easy9

Get multiple new puzzles at once (e.g. 4 easy 9x9):

./scripts/sudoku.py get easy9 --count 4

Get a Kids 6x6 puzzle:

./scripts/sudoku.py get kids6

Render Puzzle

Render a puzzle as an image, PDF, or minimal HTML.

Render latest puzzle as A4 PDF (for printing):

./scripts/sudoku.py render --pdf

Render latest puzzle as clean PNG (for viewing):

./scripts/sudoku.py render

Render a specific previous puzzle by short ID:

./scripts/sudoku.py render --id a09f3680

Render minimal HTML (square cells + bold box lines):

./scripts/sudoku.py html --id a09f3680

Reveal Solution

Reveal the solution for the latest or specific puzzle. Use --id (e.g., a09f3680) to target a specific puzzle.

Reveal full solution as printable PDF:

./scripts/sudoku.py reveal --pdf

Reveal full solution for a specific ID:

./scripts/sudoku.py reveal --id a09f3680 --image

Reveal full solution as PNG image:

./scripts/sudoku.py reveal

Reveal a single cell (row 3, column 7):

./scripts/sudoku.py reveal --cell 3 7

Reveal a specific 3x3 box (index 5):

./scripts/sudoku.py reveal --box 5

Share Link

Generate a share link for a stored puzzle. Targets the latest puzzle by default; use --id for a specific one.

Generate a SudokuPad share link (default):

./scripts/sudoku.py share

Generate link for specific ID:

./scripts/sudoku.py share --id a09f3680

Generate an SCL share link:

./scripts/sudoku.py share --type scl

Telegram Formatting Tip:

Format links as a short button-style link and hide the full URL: [Easy Classic \[\]]().

版本历史

共 2 个版本

  • v2.6.0 当前
    2026-03-28 10:05 安全 安全
  • v2.4.2
    2026-03-26 21:13

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,252
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,129
developer-tools

Codex Quota

odrobnik
通过读取 ~/.codex/sessions/ 的本地会话日志,检查 OpenAI Codex CLI 的速率限制状态(日/周配额)。便携式 Python 脚本。
★ 3 📥 6,655