Ddzaishot

# SKILL.md - ddzaishot 斗地主AI助手

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Ddzaishot" with this command: npx skills add bladezhang/ddzaishot

SKILL.md - ddzaishot 斗地主AI助手

当你需要帮助用户玩斗地主或分析牌局时,使用此技能。

功能

  • 🎯 识别屏幕上的牌
  • 📝 自动记牌
  • 🧠 AI推荐出牌
  • 🖱️ 辅助出牌(可选)

调用方式

扫描屏幕识别牌局

cd ddzaishot
python src/api.py scan

AI推荐出牌(需先设置牌)

# 设置我的牌和地主
python src/api.py suggest --cards=3,4,5,6,7,8,9,10,11,12,13,14,15 --landlord=me

# 演示模式(随机发牌测试)
python src/api.py demo

查看当前状态

python src/api.py status

牌值对应

  • 3-10: 数字牌
  • 11: J
  • 12: Q
  • 13: K
  • 14: A
  • 15: 2
  • 16: 小王
  • 17: 大王

交互式模式

python src/main.py

然后输入命令:

  • s 扫描屏幕
  • p 推荐出牌
  • m 手动输入牌
  • l 设置地主
  • d 演示模式

注意事项

  1. 屏幕识别需要先制作卡牌模板放到 templates/ 目录
  2. 鼠标控制需要先运行 c 命令校准
  3. 建议先在演示模式下测试AI逻辑

依赖

pip install opencv-python numpy pyautogui pillow mss keyboard

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Skill Polisher

Polishes standalone skills and multi-skill bundles for ClawHub readability without sacrificing LLM effectiveness. Use when improving a skill's listing, makin...

Registry SourceRecently Updated
General

OpenClaw Hi Install

Install or repair Hirey Hi on a local OpenClaw host through the official ClawHub package path, then complete the local MCP, receiver, registration, and healt...

Registry SourceRecently Updated
5630yzlee
General

Reducto

Reducto document processing API integration with managed API key authentication. Parse, extract, split, and edit documents. Use this skill when users want to...

Registry SourceRecently Updated
General

Resend

Resend API integration with managed authentication. Send transactional emails, manage domains, contacts, templates, and broadcasts. Use this skill when users...

Registry SourceRecently Updated