麻将牌型概率算法
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
三色同顺
(1)平和
三同张C(7,1)*C(3,1)*4^6*6^3*(C(25,1)*C(4,2)+C(6,1)+C(3,1)/6)
二同张C(6,1)*C(3,1)*C(2,1)*4^8*6^2*(C(24,1)*C(4,2)+C(8,1)+C(2,1)/6) 一同张C(5,1)*C(3,1)*C(2,1)*4^10*6*(C(23,1)*C(4,2)+C(10,1)+1/6)
无同张C(10,1)*C(3,1)*C(2,1)*4^12*(C(22,1)*C(4,2)+C(12,1))
(2)非平和
C(7,1)*4^9*(C(25,1)*C(4,3)*(C(24,1)*C(4,2)+C(9,1))+C(9,1)/4*(C(25,1)C( 4,2)+C(8,1)))
花龙
(1)平和
三同张A(3,3)*C(3,1)*4^6*6^3*(C(25,1)*C(4,2)+C(6,1)+C(3,1)/6)
二同张A(3,3)*C(4,1)*4^8*6^2*(C(24,1)*C(4,2)+C(8,1)+C(2,1)/6)
一同张A(3,3)*C(4,1)*4^10*6*(C(23,1)*C(4,2)+C(10,1)+1/6)
无同张A(3,3)*C(10,1)*4^12*(C(22,1)*C(4,2)+C(12,1))
(2)非平和
A(3,3)*4^9*(C(25,1)*C(4,3)*(C(24,1)*C(4,2)+C(9,1))+C(9,1)/4*(C(25,1)C( 4,2)+C(8,1)))
清龙
(1)平和
同色C(3,1)*C(7,1)*4^6*6^3*(C(25,1)*C(4,2)+C(6,1)+C(3,1)/6)
不同色C(3,1)*C(14,1)*4^12*(C(22,1)*C(4,2)+C(12,1))
(2)非平和
C(3,1)*4^9*(C(25,1)*C(4,3)*(C(24,1)*C(4,2)+C(9,1))+C(9,1)/4*(C(25,1)C( 4,2)+C(8,1)))
一色三步高123345567
(1)平和
不同色C(3,1)*C(3,1)*C(14,1)*4^8*6^2*(C(24,1)*C(4,2)+C(8,1)+C(2,1)/6) 同色二同张C(3,1)*C(4,1)*4^4*6^4*(C(26,1)*C(4,2)+C(4,1)+C(4,1)/6)
同色三同张
C(3,1)*C(3,1)*C(2,1)*6^3*4^4*(C(27,1)*C(4,2)+C(3,1)+C(3,1)/6) (1233)
45556677
C(3,1)*C(3,1)*6*4^6*(C(27,1)*C(4,2)+C(4,1)+1/6) (12)
3334455567
(2)非平和
C(3,1)*C(3,1)*4^5*6^2*(C(27,1)*C(4,3)*(C(26,1)*C(4,2)+C(5,1)+C(2,1)/6 )+C(5,1)/4*(C(27,1)C(4,2)+C(4,1)+C(2,1)/6))
一色三步高122333445
(1)平和
不同色C(3,1)*C(5,1)*C(14,1)*4^6*6^2*(C(26,1)*C(4,2)+C(5,1)+C(2,1)/6) 同色不同张C(3,1)*C(6,1)*4^6*6^2*(C(26,1)*C(4,2)+C(5,1)+C(2,1)/6)
同色一同张C(3,1)*C(6,1)*4^4*6^3*(C(27,1)*C(4,2)+C(3,1)+C(3,1)/6)
同色三同张
C(3,1)*C(5,1)*4^4*(C(29,1)*C(4,2)+C(2,1)) (122233334445)
C(3,1)*C(5,1)*C(2,1)*6^2*4^2*(C(29,1)*C(4,2)+1+C(2,1)/6) (112223333445)
(2)非平和
C(3,1)*C(5,1)*4^3*6^2*(C(29,1)*C(4,3)*(C(28,1)*C(4,2)+C(2,1)+C(2,1)/6 )+C(2,1)/4*(C(29,1)C(4,2)+1+C(2,1)/6))
三色三步高
(1)平和
三同张C(5,1)*A(3,3)*4^6*6^3*(C(25,1)*C(4,2)+C(6,1)+C(3,1)/6)
二同张
(C(5,1)*A(3,3)*C(3,1)*C(2,1)-C(2,1)*A(3,3))*4^8*6^2*(C(24,1)*C(4,2)+C (8,1)+C(2,1)/6)
一同张
(C(5,1)*A(3,3)*C(3,1)*C(2,1)-C(4,1)*A(3,3))*4^10*6*(C(23,1)*C(4,2)+C(1 0,1)+1/6)
无同张
(C(2,1)*C(9,1)+C(2,1)*C(7,1)+C(6,1))*A(3,3)*4^12*(C(22,1)*C(4,2)+C(12 ,1))
(2)非平和
C(5,1)*A(3,3)*4^9*(C(25,1)*C(4,3)*(C(24,1)*C(4,2)+C(9,1))+C(9,1)/4*(C( 25,1)C(4,2)+C(8,1)))
双喜会123456/123456或123789/123789
C(5,1)*C(3,2)*4^12*(C(22,1)*C(4,2)+C(12,1))
两般高112233/667788
无同张
(C(21,2)-C(6,1)*C(3,1)-C(5,1)*C(3,1)-C(7,1)*C(3,1))*6^6*(C(28,1)*C(4,2) +C(6,1)/6)
一同张C(5,1)*C(3,1)*6^4*(C(29,1)*C(4,2)+C(2,1)/6)
二同张C(6,1)*C(3,1)*6^2*C(30,1)*C(4,2)
双龙抱112233/112233
C(7,1)*C(3,1)*6^6*(C(28,1)*C(4,2)+C(6,1)/6)
一色四步高
C(3,1)*4^6*6^3*(C(25,1)*C(4,2)+C(6,1)+C(3,1)/6)
C(3,1)C(4,1)*4^4*6^2*(C(28,1)*C(4,2)+C(2,1)+C(2,1)/6)
一色三同顺
(1)平和
不同色C(21,1)*C(14,1)*4^6*(C(28,1)*C(4,2)+C(3,1))
同色不同张C(3,1)*C(2,1)*C(10,1)*4^6*(C(28,1)*C(4,2)+C(3,1)) 二同张C(6,1)*C(2,1)*4^2*(C(30,1)*C(4,2)+1)
一同张C(5,1)*C(2,1)*4^4*(C(29,1)*C(4,2)+C(2,1))
(2)非平和
C(21,1)*4^3*C(31,1)*C(4,3)*C(30,1)*C(4,2)
碰碰和
C(34,1)*C(4,2)*C(33,4)*4^4
一色三节高
(1)碰碰和
C(3,1)*C(7,1)*C(31,1)*C(30,1)*4^4*C(4,2)
(2)非碰碰和
不同色C(3,1)*C(7,1)*C(14,1)*4^6*(C(28,1)*C(4,2)+C(3,1))
同色不同张C(3,1)*C(10,1)*C(2,1)*4^6*(C(28,1)*C(4,2)+C(3,1)) 一同张C(3,1)*C(6,1)*C(2,1)*4^4*(C(30,1)*C(4,2)+C(2,1))
二同张C(3,1)*C(5,1)*C(2,1)*4^2*(C(29,1)*C(4,2)+1)
三色三节高
(1)碰碰和
C(7,1)*A(3,3)*C(31,1)*C(30,1)*4^4*C(4,2)
(2)非碰碰和
(C(2,1)*C(6,1)+C(2,1)*C(8,1)+C(3,1)*C(9,1))*A(3,3)*4^4*(C(29,1)*C(4,2) +C(2,1))
非四归
(C(7,1)*A(3,3)*C(7,1)-(C(2,1)*C(6,1)+C(2,1)*C(8,1)+C(3,1)*C(9,1)))*A(3, 3)*4^6*(C(28,1)*C(4,2)+C(3,1))
三同刻
(1)碰碰和
C(9,1)*C(31,1)*C(30,1)*4^4*C(4,2)
(2)非碰碰和
四归一
(C(2,1)*C(3,1)+C(2,1)*C(6,1)+C(3,1)*C(9,1))*4^4*(C(29,1)*C(4,2)+C(2,1)) 非四归
(C(7,1)*C(7,1)-(C(2,1)*C(3,1)+C(2,1)*C(6,1)+C(3,1)*C(9,1)))*4^6*(C(28, 1)*C(4,2)+C(3,1))
平和
(1)无同张*4^12*(C(22,1)*C(4,2)+C(12,1))
3/1/0... C(3,1)*C(14,1)*4^12*(C(22,1)*C(4,2)+C(12,1))
2/2/0... C(3,1)*C(10,1)*C(10,1)*4^12*(C(22,1)*C(4,2)+C(12,1))
2/1/1... C(3,1)*C(10,1)*C(7,1)*C(7,1)*4^12*(C(22,1)*C(4,2)+C(12,1)) (2)一同张*4^10*6*(C(23,1)*C(4,2)+C(10,1)+1/6)
3/1/0... C(3,2)*C(6,1)*C(7,1)*4^10*6*(C(23,1)*C(4,2)+C(10,1)+1/6)
2/2/0...
C(3,2)*C(2,1)*C(5,1)*C(10,1)*4^10*6*(C(23,1)*C(4,2)+C(10,1)+1/6)
2/1/1...
C(3,1)*C(5,1)*C(7,1)*C(7,1)*4^10*6*(C(23,1)*C(4,2)+C(10,1)+1/6)
(3)二同张*4^8*6^2*(C(24,1)*C(4,2)+C(8,1)+C(2,1)/6)
3/1/0...
(C(3,2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,1)/6)+C(5,1)/4*(C(14,1)*C(4,2)+C(4,1)+C(2,1)/6))
三同张
3/0/0...
C(3,1)*(C(2,1)*C(4,1)+C(2,1))*4^3*6^3*(C(15,1)*C(4,3)*(C(14,1)*C(4,2) +C(3,1)+C(3,1)/6)+C(3,1)/4*(C(15,1)*C(4,2)+C(2,1)+C(3,1)/6))
2/1/0...
C(3,2)*C(5,1)*C(5,1)*4^3*6^3*(C(15,1)*C(4,3)*(C(14,1)*C(4,2)+C(3,1)+ C(3,1)/6)+C(3,1)/4*(C(15,1)*C(4,2)+C(2,1)+C(3,1)/6))
(3)断幺二刻子
无同张
无四归
(C(3,1)*C(3,1)+C(3,2)*C(5,1)*C(5,1))*4^6*C(15,2)*4^2*(C(13,1)*C(4,2)+ C(6,1))
单四归
(C(3,1)*C(3,1)+C(3,2)*C(5,1)*C(5,1))*4^6*C(15,1)*C(6,1)*(C(14,1)*C(4,2 )+C(5,1))
忽略双四归
一同张
无四归C(3,1)*C(3,1)*4^4*6*C(16,2)*4^2*(C(14,1)*C(4,2)+C(4,1)+1/6)
单四归C(3,1)*C(3,1)*4^4*6*C(16,1)*C(4,1)*(C(15,1)*C(4,2)+C(3,1)+1/6)
忽略双四归
二同张
无四归
C(3,1)*C(4,1)*4^2*6^2*C(17,2)*4^2*(C(15,1)*C(4,2)+C(2,1)+C(2,1)/6)
单四归C(3,1)*C(4,1)*4^2*6^2*C(17,1)*C(2,1)*(C(16,1)*C(4,2)+1+C(2,1)/6) 忽略双四归
三同张
C(15,1)*C(18,2)*4^2*6^3*(C(16,1)*C(4,2)+C(3,1)/6)
断幺三刻子
C(15,1)*C(18,3)*4^6*(C(15,1)*C(4,2)+C(3,1))
忽略四归
断幺对对和
C(21,1)*C(20,4)*C(4,2)*4^4
役牌
三顺子
3/0/0...
C(3,1)*4^9*(C(24,1)*C(4,2)+C(9,1))*C(4,3)
C(3,1)*C(6,1)*4^7*6*(C(25,1)*C(4,2)+C(7,1)+1/6)*C(4,3)
(C(3,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