-
Notifications
You must be signed in to change notification settings - Fork 831
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
思路挺清晰的,确实不错,大赞 #6
Comments
有问题或是BUG,随时联系我。 |
我用的是js版本的,然后在node里运行mjTest.js,结果感觉有问题,第一个是有癞子的不看,第二个的牌局数据是 |
public static void main(String[] args) {
int guiIndex = 18;
int[] cards = {
1, 0, 1, 0, 1, 0, 1, 0, 0, /* 万 */
1, 1, 1, 0, 0, 0, 3, 0, 0, /* 筒 */
2, 0, 0, 0, 0, 0, 0, 0, 0, /* 条 */
2, 0, 0, 0, 0, 0, 0};//字
System.out.println("测试1种,癞子:" + guiIndex);
Program.print_cards(cards);
boolean hu = Hulib.getInstance().get_hu_info(cards, 34, guiIndex);
System.out.println(hu);
System.exit(0);
} 我运行了下例子,也输出false?这不是和了吗,还有如果不带百搭的话,是不是guiIndex随便传个0~33以外的就可以? |
这种情况是胡不了的。不带百搭传34 |
看了很多麻将的胡牌算法,这个应该是比较高效而且文档代码清晰的一个,感谢分享。
The text was updated successfully, but these errors were encountered: