Skip to content

Commit c8b23e4

Browse files
committed
hand list comment
1 parent 149948a commit c8b23e4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mahjong/mahjongHu_v5.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ class MjMapTbV5 {
5353

5454
// handList: 当前手牌
5555
// len: handList长度
56+
/*
57+
手牌格式
58+
int cards[35] = { // 仅处理前35个字节
59+
0, // 混个数
60+
1, 0, 0, 0, 0, 0, 1, // 风字牌1-7
61+
0, 0, 0, 0, 0, 0, 0, 0, 0, // 万8-16
62+
0, 0, 0, 0, 0, 0, 3, 0, 0, // 条17-25
63+
0, 0, 0, 0, 0, 0, 0, 0, 0, // 筒26-34
64+
0, 0, 0, 0, 0, 0, 0, 0 // 花35-42
65+
};
66+
*/
5667
bool checkHu(char* handList, int len) {
5768
int hunNum = handList[0];
5869
if (hunNum > MAX_HUN_COUNT) {

0 commit comments

Comments
 (0)