Skip to content

Add autoplay port and fix runtime issues#71

Open
FanhuaAwA wants to merge 2 commits intoXe-Persistent:masterfrom
FanhuaAwA:feat/autoplay-port-and-fixes
Open

Add autoplay port and fix runtime issues#71
FanhuaAwA wants to merge 2 commits intoXe-Persistent:masterfrom
FanhuaAwA:feat/autoplay-port-and-fixes

Conversation

@FanhuaAwA
Copy link

变更说明

本 PR 将自动打牌功能移植到 Akagi-NG,并接入现有后端主流程、设置系统和前端设置面板。

同时修复了在 Majsoul 实测过程中发现的多项自动打牌问题。

主要内容

  • 新增自动打牌模块
    • autoplay/planner.py
    • autoplay/manager.py
    • autoplay/executor.py
  • 将自动打牌接入应用主流程
  • 桥接层增加 operationListstep 捕获
  • 增加自动打牌相关设置、前端类型和设置面板
  • 补充 ron / nukidora 类型支持
  • 优化 libriichi 动态库加载
  • 调整本地 Windows 打包脚本,避免签名链路导致的构建失败

修复内容

  • 修复 拔北 后继续自动出牌时的坐标越界崩溃
  • 修复部分 14 张手牌 + tsumohai 状态下无法生成自动打牌计划的问题
  • 修复 碰/吃 后暗手牌数量变化,但摸切仍按旧坐标点击的问题
  • 修复过期 operationList 残留导致的自动打牌判断错误
  • 增加更详细的自动打牌日志,便于后续继续排查

测试

  • 新增自动打牌规划测试
  • 新增 Majsoul 自动打牌桥接测试
  • 已完成本地单元测试和语法检查

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant