Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base_table/hulib.lua 胡牌算法有问题 #59

Open
ijob2011 opened this issue Sep 24, 2019 · 0 comments
Open

base_table/hulib.lua 胡牌算法有问题 #59

ijob2011 opened this issue Sep 24, 2019 · 0 comments

Comments

@ijob2011
Copy link

文件 qipai_algorithm/mjlib_lua/base_table/hulib.lua 的get_hu_info 方法,并没有判断牌是否是3n+2,如果是3n的牌也会返回true,比如说手牌只有1,2, 3条 。

修改方法1,查表前判断牌总数%3是不是等于2
修改方法2,31行代码改为 return true and first_info.eye

@ijob2011 ijob2011 reopened this Sep 30, 2019
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

No branches or pull requests

1 participant