mahjong software

Want to know mahjong software? we have a huge selection of mahjong software information on alibabacloud.com

Laizi Mahjong Game Algorithm implementation

The first implementation is the implementation of the algorithm.Demand: Touch the bar Hu, can not eat, can not listen, can only self-touch Hu, which Laizi can do any card but not touch and bar.When you write, you don't play Mahjong or the boss teaches. ^_^The most troublesome is the HU card algorithm. Before the search is not included Laizi normal Hu card, with a% of 3 more than 2, of which the remainder of 2 is the meaning of the remaining.But a laiz

HDU 4431 Mahjong (enumeration, simulation)

Reprint please indicate the source, thank you http://blog.csdn.net/ACM_cxlove? Viewmode = ContentsBy --- cxlove Question: Give 13 Mahjong cards and ask what cards you want to grab ~~~ Http://acm.hdu.edu.cn/showproblem.php? PID = 1, 4431 It means no Mahjong at all. I simply read the question, and then I started to do it after I heard Victoria talk about it. Enumerate all the cards, and then determine if the

Cocos2dx standalone Mahjong (4)

Cocos2dx standalone Mahjong (4) Mahjong logic 5. Simulate playing //// Main. CPP // majianglogictest /// created by tinyult on 14-8-16. // copyright (c) 2014 tinyult. all rights reserved. // # include Output: Chaotic initial card heap 0x25 0x13 0x1 0x3 0x21 0x43 0x54 0x14 0x9 0x12 0x13 0x8 0x31 0x24 0x13 0x31 0x6 0x4 0x28 0x31 0x34 0x18 0x7 0x27 0x15 0x18 0x51 0x11 0x42 0x12 0x28 0x2 0x57 0x25 0x16 0x4 0x

Cocos2dx standalone Mahjong (III)

Cocos2dx standalone Mahjong (III) Mahjong logic 4. Obtain card data We have saved a one-dimensional array. Similar to a table, we can calculate the number of all cards, but how can we get the cards in our hands? // Poker Conversion Byte switchtocarddata (byte cbcardindex [max_index]/* input table for counting the number of all cards */, byte cbcarddata [max_count]/* outgoing hand card data */) { // Convert

HDU 5379 Mahjong Tree (DP)

Title Link: hdu 5379 Mahjong TreeTree DP, each node has a maximum of 2 child nodes for the root node of a subtree of more than 1 nodes, and either the node values of the descendants are greater than or less than itself (so Tson not 0 is, to multiply by 2). For a child node of K single node, the number of species is the full row k!. When a node does not have a sibling node, a subtree with this node as its root nodes can choose the maximum or minimum.#p

(Jingdezhen) Mahjong scoring rules

[Game Statement]Jingdezhen Mahjong[Action Options]: Eat and touch the bar Hu[Eat cards]sub-card: Flush[3]only Home Note: > Flush[million-piece tube]> Word Loops[Cardinal][Medium Whitish][Touch Cards]Sub-card: With three cards[3][Bar Card]Sub-card: The same four cards[4][rules of the HU brand]Pinhou (four pair of Hu) hand {pair will[1], sub-card} + side pair seven pair (seven pair can hu) hand {pair will[7]} (all by the unitary group card can also HU)

The efficiency optimization of mahjong Laizi pruning algorithm

First of all, four Laizi to do 34*34*34*34 's poor lifting.And then do the pruning optimization.Time complexity differs by an order of magnitude 34But it's not the average efficiency, and the worst is still not going to rise too much.But some mahjong Laizi number more than 7At this point should be used to look up the table, and then the cycle to do the poor is obviously a waste of efficiencyThe relevant code is temporarily not availableYou can leave a

[Jsoi 2007] Mahjong

DescriptionQuestion Bank linkGive you a pair of mahjong, the condition of the HU card is a pair will and a number of straight and engraved composition. Now give you \ (m\) cards, cards common \ (n\) species, ask you to listen to which card.\ (1\leq n\leq 400,1\leq m\leq 1000\)SolutionConsider enumerations to listen to that card, and then enumerate which pair to do.For the rest of the cards, first from small to large to sweep once, if the current card

Zhejiang Province Sai Mahjong Sorting (classified discussion) __ Zhejiang province

Mahjong sorting time limit:1 Second Memory limit:65536 KB Dreamgrid has just found a set of mahjong with suited tiles and a white Dragon the in his pocket. Each suited tile has a suit (Character, Bamboo or Dot) and a rank (ranging from 1 to), and there is exactly one tile of E Ach rank and suit combination. Character tiles whose rank ranges from 1 to 9 Bamboo tiles whose rank ranges from 1 to 9 Dot tiles wh

Problems with Mahjong-style characters appearing on pages on Web servers published on Linux by Web applications

What is the Mahjong card character, is the Chinese display as a vertical rectangular box inside there are four numbers or letters, please fancy Chinese, Japanese and Korean display will know:Why do you encounter this problem?The system does not support Chinese, Japanese, and Korean fonts.How to resolve:Installs Chinese fonts, Japanese fonts, and Korean fonts.Reference:1. How to install multi-language packs under Linux2.linux Install Chinese Language p

UVa 11210 Chinese Mahjong (violence, recursive search)

Test instructions: This test instructions. A bit of a hassle, that is, given 13 cards, you can ask for "Listen" cards. (See the original question for details)Original title Link: https://uva.onlinejudge.org/index.php?option=com_onlinejudgeitemid=8page=show_problem problem=2151Analysis: See this question, really trouble ah, I do not understand Mahjong, looked at a long time to understand what is "listening." Analyze the idea.First of all the cards are

"Hdoj 5379" Mahjong tree

"Hdoj 5379" Mahjong treeto a tree. Nodes that require the same Father node to label successive nodes of the same subtree consecutively ask a total of several standard methodsI drew a picture and found that the markings had a feeling of two forks.Initial label 1~n root node 1 can be labeled 1 or N otherwise, the following subtree will not be able to satisfy each successive and the son of the root node must be continuousThe nodes under the root node div

Hdu 5379 Mahjong Tree (DFS + combination number)

Topic Links:Hdu 5379 Mahjong TreeTitle Description:A tree with n nodes is given, with node 1 as the root node. Q. How many numbering schemes are numbered for n points on a tree if the sibling nodes are satisfied and the subtree contains continuous nodes?Problem Solving Ideas:For a node, the non-leaf son node up to two can meet the requirements, or satisfy the subtree node continuous words can not meet the Brother node continuous. Then there are DFS to

HDU 5379 Mahjong Tree

Test instructions: In a tree with n nodes numbered from 1 to n Mahjong, requires each point of the son node between the number of consecutive, each subtrees tree within the number of consecutive.Solution: Hand Push a set of samples can be obtained as a conclusion and then from the root node to discuss the side of the search.When a node has only one son, if the son is a leaf node there is only one way, if the son is not a leaf node there are two ways t

(Jingdezhen) Mahjong rules

Mahjong Rules Engine communication {} player (P)Rule Engine (RE) re{, Ding Bao, licensing}p: Game table InitializationP (banker): Grasping card (complement)-RE: Calculate status {hu, listen}p: Cards-RE: Calculate status {Touch the bar to eat Hu}p: status update {hit the bar to eat Hu}P: Take a picture-RE: Calculate status {Listen}> CardsRE: Calculate status {Touch the bar to eat Hu}p: status update {hit the bar to eat Hu}P: Touch a picture-RE: Calcula

UVA-11210-Chinese (Mahjong)

UVA-11210-Chinese (Mahjong) The 24-page training guide is really drunk. I thought it was an endless loop. Originally, there were too many loop sets. A group of samples, 500 S + recursion, would be reduced as much as possible. nested loops would have killed my complexity. 34*14*13*12*11*10*9*8*7*6*5*4*3*2*1 it's hard to use your mind !!!Pay special attention to future backtracking. Never forget to call the function and change the variable back. # Inclu

Code Building tutorial Mahjong AI algorithm and data structure chess card

Mahjong ID ArchitectureUse one-dimensional array paicaption (143) to record each card ID and text information, the array content is a text description, subscript as an ID (0-143, a total of 144 cards)1, the basic structure of the judgment of Hu BrandUse a one-dimensional array to record the number of individual cards, such asint pai[38] = {0,1,1,1,0,1,1,1,0,0,//pai[1-9] The number of the million ~ Wan0,0,0,0,0,0,3,0,0,0,//pai[11-19] one copper ~ Nine

Laizi Mahjong Game Algorithm implementation

The first implementation is the implementation of the algorithm.Demand: Touch the bar Hu, can not eat, can not listen, just can self-touch hu, among Laizi can do random cards but can not touch and bar.When you write, you don't play Mahjong or the boss teaches. ^_^The most troublesome is the HU card algorithm. Before the search is not including Laizi normal Hu card, with a% of 3 more than 2, the remainder of 2 is the meaning of the remaining.But you ca

[Bzoj 1028] [JSOI2007] Mahjong "enumeration + greedy judgment"

Title Link: BZOJ-1028Problem analysisEnumeration of what kind of cards to listen to, and then enumerate the pairs of what kind of cards, and then greedy judgment:Enumerate each card from 1 to N, if the number of such cards is less than 0, the return is illegal.The number of this card is 3, the remaining can only and I + 1, i + 2 These two cards constitute shun, so num[i + 1]-= num[i]; Num[i + 2]-= Num[i];The type of cards to enumerate to n + 2, since the n-1 and nth cards may lose the N + 1,n +

Sha 11210 Chinese Mahjong

#include Sha 11210 Chinese Mahjong

Total Pages: 15 1 .... 3 4 5 6 7 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.