Jimboom7 / AlphaJong

A Mahjong AI for Mahjong Soul
GNU General Public License v3.0
395 stars 56 forks source link

是否可以不自动打牌,而是给出打牌建议,这样有助于学习bot的打法? #42

Closed ayssia closed 2 years ago

ayssia commented 2 years ago

如题。

yangruihan commented 2 years ago

我制作了一个辅助模式,可以显示当前AI策略,而不是自动操作。你可以随时在界面上进行 AUTO 和 HELP 模式切换。

代码分支在这里:https://github.com/yangruihan/AlphaJong/tree/help_mode

你可以直接使用 https://github.com/yangruihan/AlphaJong/releases/download/v1.2.2/AlphaJong_1.2.2.user.js

我会尝试提 PR 合并到主干

截屏2022-05-03 下午2 07 52

I've made an "HELP" mode that shows the current AI strategy, instead of doing it automatically, you can switch between "AUTO" and "HELP" modes on the interface at any time.

The sources code branch is here: https://github.com/yangruihan/AlphaJong/tree/help_mode

You can use https://github.com/yangruihan/AlphaJong/releases/download/v1.2.2/AlphaJong_1.2.2.user.js directly

I will try to make a PR.

截屏2022-05-03 下午2 07 52
yangruihan commented 2 years ago

你也可以通过 F12 打开控制台,查看 AI 输出,其中有当前策略结果,以及手牌排名,你可以可以通过修改LOG_AMOUNT参数来展示更多的手牌排名结果

You can also open the console through F12 and view the AI output, which includes the current strategy results and the hand ranking. You can display more hand ranking results by modifying the LOG_AMOUNT parameter.

yangruihan commented 2 years ago

I've made a PR #43

yangruihan commented 2 years ago

其中:

英文 中文
discard 弃牌
call
riichi 立直
kan
Jimboom7 commented 2 years ago

This feature is now released in version 1.3.0. Thank you very much yangruihan!