Skip to content

Commit cf7c13f

Browse files
committed
comment version 1
1 parent 0a54f0d commit cf7c13f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mahjong/mahjongHu_v1.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ typedef map<Key,Val> tbMap;
1818
#define MAX_HUN_COUNT 8
1919
#define MAX_MJ_CODEARRAY 43
2020

21+
/*
22+
* 该版本穷举所有可胡牌型,加载到内存,根据当前手牌牌型,查表验证是否可胡
23+
* 此版本只生成14张手牌,2、5、8、11张的时候尚未生成,
24+
* 仅14张手牌生成表文件近600M(Map的Key用string也是导致表大的原因)
25+
* 加载入内存需要近2G,所以该版本不是特别适用
26+
*/
2127
class MjMapTb {
2228
public:
2329
MjMapTb(){}

0 commit comments

Comments
 (0)