返回列表 发帖

麻将 国标麻将算番源代码(摘)

int myCount(int *in);

int doit1(int *in,int count);

int Hu(int pai[8],int jiang)

Remain(int pai[38]]);

int getHuKeZi(int pai[38],int huKeZi[5]);

int getHuShunZi(int pai[38],int huShunZi[5]);

int isDanDiaojiang(int userHandPai[38],int huPai,int huFa);

int canAsJiangInit(int pai[38],int huPai);

int canAsJiang(int pai[38]);

int isKanZhang(int userHandPai[38],int huPai);

int isBianZhang(int userHandPai[38],int huPs);

int isWuZi(int *userHandPai,int *chiPai,int  *pengPai,int *anGangPai,int *mingGangPai);

int isQueYiMen(int *userHandPai,int *chiPai,int  *pengPai,int *anGangPai,int *mingGangPai);

int isMingGang(int * mingGangPai);

int isYaoJiuKe(int  *pengPai,int *anGangPai,int *mingGangPai,int *huKeZi);

int getAllShunZi(int *allShunZi,int *chiPai,int *huShunZi);

int getAllKeZi(int *allKeZi,int *pengPai,int *huKeZi);

int getAllKeGang(int *allKeGang,int *allKezi,int *anGangPai,int *mingGangPai);

int isLaoShaoFu(int *allShuZi,int allShunZiLength);

int isLianLiu(int *allShunZi);

int isXiXiangFeng(int *allShunZi);

int isYiBanGao(int *allShunZi);

int isDuanYao(int *userHandPai,int *chiPai,int  *pengPai,int *anGangPai,int *mingGangPai);

int isAnGang(int *anGangPai);

int isShuangAnKe(int *huKeZi,int *anGangPai,int huPai,int zimo,int *pai);

int isShuangTongKe(int *allKeGang,int allKeGangLength);

int isSiGuiYi(int *PAI,int *chiPai,int *pengPai);

int isPingHu(int *allShunZi,int allShunZiLength,int *userHandPai,int huFa);

int isMenQianQing(int zimo,int *chiPai,int *pengPai,int *mingGangPai);

int isMenFengKe(int *allKeGang,int menFeng);

int isQuanFengKe(int *allKeGang,int quanFeng);

int isJianKe(int allKeGang[5]);

int isHuJueZhang(int paiChi[38],int otherUserChiPai[3][5],int otherUserPengPai[3][5],int huPai);

int isShuangMingGang(int mingGangPai[5]);

int isBuQiuRen(int zimo,int chiPai[5],int pengPai[5],int mingGangPai[5]);

int getHuShunKeJiang(int PAI[38],int huShunZi[5],int huKeZi[5],int *jiangPai,int JIANG);

int isQuanDaiYao(int allShunZi[],int allKeGangPai[],int jiangPai,int huFa,int *userHandPai);

int isShuangJianKe(int allKeGang[5]);

int isShuangAnGang(int anGangPai[5]);

int isQuanQiuRen(int userHandPai[38],int chiPai[5],int pengPai[5],int huPai,int zimo,int huFa);

int isWuMenQi(int *userHandPai,int *chiPai,int  *pengPai,int *anGangPai,int *mingGangPai);

int isSanSeSanBuGao(int allShunZi[5],int allShunZiLength);

int isHunYiSe(int *chiPai,int chiPaiLength,int *userHandPai,int * pengPai,int pengPaiLength,int *mingGangPai,int mingGangPaiLength,int *anGangPai,int anGangPaiLength);

int isPengPengHu(int allKeGangLength);

int isQiangGangHu(int qiangGanghu);

int isGangShangKaiHua(int gangShangKaiHua);

int isHaiDiLaoYue(int zimo,int *paiQiang);

int isMiaoShouHuiChun(int zimo,int *paiQiang);

int isWuFanHu(int fanZhong1[13],int fanZhong2[10],int fanZhong4[4],int fanZhong6[7],int fanZhong8[9],int fanZhong12[5],int fanZhong16[6],int fanZhong24[9],int fanZhong32[3],int fanZhong48[2],int fanZhong64[6],int fanZhong88[7]);

int isSanSeSanJieGao(int allKeGang[5],int allKeGangLength);

int isSanSeSanTongShun(int allShunZi[5],int allShunZiLength);

int isTuiBuDao(int *userHandPai,int *chiPai,int  *pengPai,int *anGangPai,int *mingGangPai,int chiPaiLength,int pengPaiLength,int anGangPaiLength,int mingGangPaiLength);

int isHuaLong(int allShunZi[5],int allShunZiLength);

int isSanFengKe(int *allKeGang,int allKeGangLength);

int isXiaoYuWu(int *chiPai,int chiPaiLength,int *userHandPai,int * allKeGang,int allKeGangLength);

int isDaYuWu(int *chiPai,int chiPaiLength,int *userHandPai,int * allKeGang,int allKeGangLength);

int isZuHeLong(int *userHandPai);

int isZuHeLong1(int *userHandPai);

int isQuanBuKao(int *PAI,int yiHuaSe,int erHuaSe,int sanHuaSe);

int isQuanBuKao0(int *userHandPai);

int isSanAnKe(int *huKeZi,int *anGangPai,int huPai,int zimo,int *pai);

int isSanTongKe(int allKeGang[5],int allKeGangLength);

int isDengYuWu(int *allShunZi,int allShunZiLength,int *userHandPai,int * allKeGang,int allKeGangLength,int *huShunZi,int huShunZiLength);

int isYiSeSanBuGao(int *allShunZi,int allShunZiLength);

int isSanSeShuangLongHui(int *allShuZi,int allShunZiLength,int jiang);

int isQingLong(int *allShunZi,int allShunZiLength);

int isQuanXiao(int *allShunZi,int allShunZiLength,int *userHandPai,int * allKeGang,int allKeGangLength);

int isQuanZhong(int *allShunZi,int allShunZiLength,int *userHandPai,int * allKeGang,int allKeGangLength);

int isQuanDa(int *allShunZi,int allShunZiLength,int *userHandPai,int * allKeGang,int allKeGangLength);

int isYiSeSanJieGao(int allKeGang[5],int allKeGangLength);

int isYiSeSanTongShun(int allShunZi[5],int allShunZiLength);

int isQingYiSe(int *allShunZi,int allShunZiLength,int *allKeGang,int allKeGangLength,int *userHandPai,int huPai);

int isQuanShuangKe(int *allKeGang,int allKeGangLength,int jiang);

int isQiDui(int *userHandPai);

int isQiXingBuKao(int *userHandPai);

int isHunYaoJiu(int  *allKeGang,int allKeGangLength,int jiang);

int isSanGang(int mingGangPaiLength,int anGangPaiLength);

int isYiseSiBuGao(int *allShunZi,int allShunZiLength);

int isYiSeSiJieGao(int *allKeGang,int allKeGangLength);

int isYiSeSiTongShun(int *chiPai,int chiPaiLength,int pengPaiLength,int mingGangPaiLength,int anGangPaiLength,int *userHandPai);

int isYiSeShuangLongHui(int *allShuZi,int allShunZiLength,int jiang);

int isSiAnKe(int *huKeZi,int *anGangPai,int huPai,int zimo,int *pai);

int isZiYiSe(int *allKeGang,int allKeGangLength,int jiang);

int isXiaoSanYuan(int allKeGang[5],int allKeGangLength,int jiang);

int isXiaoSiXi(int allKeGang[5],int allKeGangLength,int jiang);

int isQingYaoJiu(int allKeGang[5],int allKeGangLength,int jiang);

int isShiSanYao(int *userHandPai);

int isLianQiDui(int *userHandPai);

int isSiGang(int mingGangPaiLength,int anGangPaiLength);

int isJiuLianBaoDeng(int *userHandPai,int huPai);

int isLuYiSe(int *allShunZi,int allShunZiLength,int  *allKeGang,int allKeGangLength,int jiang);

int isDaSanYuan(int allKeGang[5],int allKeGangLength);

int isDaSiXi(int allKeGang[5],int allKeGangLength);

返回列表