当你需要帮助用户玩斗地主或分析牌局时,使用此技能。
bash
cd ddzaishot
python src/api.py scan
bash
# 设置我的牌和地主
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
bash
python src/api.py status
bash
python src/main.py
然后输入命令:
s 扫描屏幕p 推荐出牌m 手动输入牌l 设置地主d 演示模式templates/ 目录c 命令校准bash
pip install opencv-python numpy pyautogui pillow mss keyboard