资源描述:
《麻将胡牌算法(mahjong hu algorithm)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、麻将胡牌算法(MahjongHualgorithm)ThehenHu0ismadeupoffourcardsandapairofcards,whichdoesnotconformtoanyofthefollowingitems.Selfdrawn1,thelastHucardisacardthatistouchedbyoneself.PingHu1areShunZi,theheadisnotplate.Take1toheadone,two,five,oreight.Missingfive,1cards,no"Five"number.No,nineand1.The
2、deckplateisshortof(a,andninecardcalled"me").LikeGao1,therearetwopairsofthesameShunZi.Threeyuanbrand1togetanyofthemiddle,hair,whiteengraved.1getwindsigntheirownnameorsubquartercirclewind.Flower1aflowercannotget,orgetaconsistentnamewithflower.Whenyoulistento1cards,justlistentoacard.Shu
3、nZiand/or"111"and"999"ofthesamecolor"123"and"789"weretakenbytheoldandtheyoung1.Onlytwocolorsavailable1deck,andnoplate.DoorQing1didnoteat,didnottouch,allcardsaretheirowntouch,thelastshotbyothers.Dragon1getthreecolorsofthe"123","456"and"789"ofShunZi.ThelastoneHustrivefortheimpossible1c
4、ards(touch).Thebottomoftheriverfish1bottomofthelastHucard(blasting).Rob1,becauseothersaddbarandaddbar,thatcardhappenstobehisowncardandshouthu.Shotbyaddingbar.Twobars,1barsout(Mingbarordarkbar)twodifferentcards.1barspendtheMingbarordarkbarandtiles,tilesafterjusthupai.Cardfive1handshav
5、eafourandasix,listentofive.Qingfourtouch1,touchfourpiecesofcarved,Mingbarisalsocalculated.Fournormalization1fourcardsaredividedintoapairofShunZiandapairofengraved.Four,two,2,fourofthesamecardsaredividedintotwopairsofShunZiandonepair.Withallthe2mixedShunZi,carvedandwillhaveatleastone,
6、nineoraplate.Agroupof2flowerstogether"Seasons"or"plum"fourflowerscards.Halfseeking2allcardsareobtainedbyeatingortouching,butintheendonlylisteningwillhavetobeselfdrawn.All3ofallcardsareobtainedbyeatingortouching,butintheendonlylisteningwillhavetobeshotbyothers.Doorcleanselfdrawn3didno
7、teat,didnottouch,allcardsaretheirowntouch,andevenHucardthatisalsoselfdrawn.Yes,Hu3isallcarved,noShunZi.Adragon3fullonetoninesuit.Takeitall3ofShunZi,andthemomenthasatleastoneandnine,butnotaword.3mixedcolordeckplateandtheotherbythesinglecolor(barrel,or10000)composition.Threeeach3togett
8、hreesamenumb