CN115177958A - Testing method and system for simulating mahjong game - Google Patents

Testing method and system for simulating mahjong game Download PDF

Info

Publication number
CN115177958A
CN115177958A CN202210825957.4A CN202210825957A CN115177958A CN 115177958 A CN115177958 A CN 115177958A CN 202210825957 A CN202210825957 A CN 202210825957A CN 115177958 A CN115177958 A CN 115177958A
Authority
CN
China
Prior art keywords
mahjong
preset
current
data
types
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210825957.4A
Other languages
Chinese (zh)
Inventor
施克俭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202210825957.4A priority Critical patent/CN115177958A/en
Publication of CN115177958A publication Critical patent/CN115177958A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/843Special adaptations for executing a specific game genre or game mode involving concurrently two or more players on the same game device, e.g. requiring the use of a plurality of controllers or of a specific view of game data for each player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/847Cooperative playing, e.g. requiring coordinated actions from several players to achieve a common goal
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/20Dominoes or like games; Mah-Jongg games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/20Dominoes or like games; Mah-Jongg games
    • A63F2009/205Mah-jongg games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8023Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game the game being played by multiple players at a common site, e.g. in an arena, theatre, shopping mall using a large public display

Abstract

The invention provides a testing method and a system for simulating a mahjong game, which are applied to the technical field of mahjong; acquiring mahjong data of a current upper hand; inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result; acquiring the number of all the mahjong tiles played on the current mahjong table; judging whether the success probability of the combination of the current card types needing to be combined is greater than the preset success rate or not according to the prediction result and the number of all the card types; if yes, recommending a tile type larger than the preset success rate for the current mahjong game player; according to the original notations, selecting different playing methods by a component of '36575', and then simulating the actual playing method to calculate and compare the probabilities of playing the playing cards respectively, so that learners can find the correct playing method through the method and the confusion of the playing process of mahjong is relieved.

Description

Testing method and system for simulating mahjong game
Technical Field
The invention relates to the technical field of mahjong, in particular to a testing method and a testing system for simulating a mahjong game.
Background
At present, along with the development of the internet, mobile phone/network games gradually have a greater proportion in the leisure and entertainment life of people, and the leisure and entertainment life of people is greatly enriched.
Mahjong is a digital game, is very simple, but is ever-changing and quite complex, and few people can seriously know the changes, and various playing methods are caused by the lack of a real tool. In view of this, the present application provides a set of mahjong software that can help learning and relieve confusion.
Disclosure of Invention
The invention aims to help learning and solve the problem of confusion in the mahjong playing process, and provides a testing method and a testing system for simulating a mahjong game.
The invention adopts the following technical means for solving the technical problems:
the invention provides a testing method for simulating a mahjong game, which comprises the following steps:
acquiring the mahjong data of the current upper hand;
inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result;
acquiring the number of all the mahjong tiles played on the current mahjong table;
judging whether the success rate of the combination of the current card types required to be combined is greater than the preset success rate or not according to the prediction result and the number of all the card types;
if yes, recommending the mahjong type larger than the preset success rate for the current mahjong game player.
Further, before the step of obtaining the mahjong data of the current previous hand, the method comprises the following steps:
obtaining the type of the current upper hand mahjong;
judging whether the mahjong types can form a preset waistcoat or pair;
if yes, the mahjong data are sequentially arranged according to the preset waists or pairs.
Further, after the step of sequentially arranging the mahjong data according to the preset waists or pairs, the method comprises the following steps:
acquiring the total number of preset waistlines and pairs;
judging whether the mahjong data can form a preset Hu-card type according to the total number;
if not, recording the mahjong data of the current upper hand.
Further, the step of inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result includes:
inputting all mahjong types and tile types into a training model, and training according to the preset mahjong number to obtain a trained prediction model;
acquiring the mahjong quantity of the mahjong data, and inputting the mahjong quantity into the prediction model to obtain the probability of each tile type and the waste tiles corresponding to the tile types; the waste cards are specifically redundant cards in the case of the card type.
Further, the step of obtaining the number of all the tiles played on the current mahjong table comprises the following steps:
counting the number of the current remaining mahjong pieces according to all preset mahjong types and the preset mahjong number;
judging whether the number of the remaining cards is larger than a preset available quantity or not;
if yes, reserving the recommendable corresponding card types according to the number of the residual cards.
Further, the step of recommending the tile type larger than the preset success rate for the current mahjong game player comprises:
obtaining the type of the mourning card with the maximum current probability according to the number of the current residual cards and the current playing of the mahjong players; the playing cards comprise eating, hitting and hitting bars in mahjong types;
judging whether the income of the tile type is larger than the income preset by the mahjong player or not;
if not, the types of the tiles are not reserved for the mahjong players.
Further, the step of judging whether the income of the tile type is larger than the income preset by the mahjong game player comprises the following steps:
obtaining the preset income of the mahjong gamer;
judging whether the preset income of the mahjong game player can be realized or not according to the number of all the tiles played on the current mahjong table;
if not, the mahjong game player is advised to give up the card.
The present invention also provides a test system for simulating a mahjong game, comprising:
the first acquisition module is used for acquiring the mahjong data of the current upper hand;
the first input module is used for inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result;
the second acquisition module is used for acquiring the number of all the mahjong tiles played on the current mahjong table;
the first judgment module is used for judging whether the success rate of the combination of the current card types needing to be combined is greater than the preset success rate or not according to the prediction result and the number of all the card types;
and the first execution module is used for recommending the mahjong types larger than the preset success rate for the current mahjong game player if the current mahjong game player is the current mahjong game player.
Further, the method also comprises the following steps:
the third acquisition module is used for acquiring the type of the current upper-hand mahjong;
the second judgment module is used for judging whether the mahjong types can form a preset waistcoat or a pair;
and the second execution module is used for carrying out sequential arrangement on the mahjong data according to the preset waists or pairs if the mahjong data are in the positive.
Further, the second execution module further includes:
the first acquisition unit is used for acquiring the total number of preset waistlines and pairs;
the first judging unit is used for judging whether the mahjong data can form a preset Hu-card type according to the total number;
and the first execution unit is used for recording the mahjong data of the current upper hand if the current upper hand is not the mahjong data of the current upper hand.
The invention provides a testing method and a system for simulating a mahjong game, which have the following beneficial effects:
according to the original means, a user uses a '36575' component to select different playing methods, then the actual playing method is simulated to calculate and compare the probabilities of playing the moustache cards, so that a learner can find a correct playing method through the method, and the confusion of mahjong in the playing process is relieved.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of a testing method for simulating a mahjong game according to the present invention;
FIG. 2 is a block diagram of the testing system for simulating a mahjong game according to an embodiment of the present invention.
Detailed Description
It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be considered as limiting thereof, since the objects, features and advantages thereof will be further described with reference to the accompanying drawings.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a testing method for simulating a mahjong game according to an embodiment of the present invention includes the following steps:
s1: acquiring the mahjong data of the current upper hand;
s2: inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result;
s3: acquiring the number of all the mahjong tiles played on the current mahjong table;
s4: judging whether the success probability of the combination of the current card types needing to be combined is greater than the preset success rate or not according to the prediction result and the number of all the card types;
s5: if yes, recommending the mahjong type which is larger than the preset success rate for the current mahjong game player.
In this embodiment, the system obtains the tile type corresponding to the tile of the current mahjong player and the waste tile corresponding to the tile type by obtaining the mahjong data of the current mahjong player and inputting the mahjong data into a preset and trained prediction model for prediction; the system obtains the number of all the mahjong pieces played on the current mahjong table, and counts the residual number of the corresponding mahjong pieces in the number of the mahjong pieces; for example, ten thousand-character cards are played, and thirty-six thousand-character cards are played from one to nine ten thousand, and twenty-six thousand-character cards are left at the time; for example, twenty sub-cards are played, from one to nine, thirty-six sub-cards are played, and then sixteen sub-cards are left; the system judges whether the success probability of the combination of the card types which are required to be combined currently is larger than the preset success rate or not according to the known quantity of all the card types by predicting the obtained result from the prediction model; for example, the tile type obtained by the system is ten thousand characters with one color, ten cards with ten thousand characters in all the current tile types are remained, the number of the remaining tiles in the hand of the current mahjong game player is ten thousand characters, the probability that the ten thousand characters have one color is 80% in the prediction result, the preset success rate of the system is 33%, namely the probability that the tile types required to be combined at present are combined successfully is higher than the preset success rate, namely the system recommends the card type with one color for the current mahjong game player at present; for example, the tile type obtained by the system is a hu, 1 tile remains in all the tile types, the total number of the tiles on the tile surface is 8, the current mahjong game player is in a tile listening stage, the probability that the hu can be obtained according to the prediction result is 12.5%, and under the condition that the preset success rate of the known system is 33%, namely the success rate of combining the tile types required to be combined currently is not greater than the preset success rate, namely the system does not recommend the current mahjong game player to be the hu tile type, and then the recommended game player gives up the game, and the defense is well.
In this embodiment, before the step S1 of obtaining the mahjong data of the current previous hand, the method includes:
s101: obtaining the type of the current upper hand mahjong;
s102: judging whether the mahjong types can form a preset waistcoat or pair;
s103: if yes, the mahjong data are sequentially arranged according to the preset waistlines or pairs.
In the embodiment, the system judges whether the mahjong types can form a deck or a pair according to the preset sequence card deck and the pair by acquiring the previous mahjong types of the current mahjong game player; for example, the system acquires that the current mahjong types are 123, 123 ten thousand, 123 tubes, and 6, that is, the system can acquire 123 canns, 123 ten thousand, and 123 tubes, and there are 6 pairs that can be acquired; for example, the system acquires the current mahjong types of 12, 46 and 79, 113479 ten thousand, that is, the canes acquired by the system do not exist at this time, and the pairs acquired by the system only have one pair of 1 ten thousand.
In this embodiment, after the step S103 of sequentially arranging the mahjong data according to the preset waistlines or pairs, the method includes:
s1031: acquiring the total number of preset waistlines and pairs;
s1032: judging whether the mahjong data can form a preset Hu-card type according to the total number;
s1033: if not, recording the mahjong data of the current upper hand.
In this embodiment, after the system sorts the mahjong types of the current mahjong game player by obtaining the total number of the waists and the pairs, the system judges whether the preset picnic type can be formed according to the number of the waists and the pairs; for example, the total number of the canes and the pairs obtained by the system is 3 canes and 1 pair of pairs, the preset type of the playing cards is the number of the chichu, that is, the number of the canes and the pairs of the current mahjong game player can form the preset type of the playing cards, and the current mahjong data of the current hand is recorded to remind the game player of playing the playing cards; for example, the total number of the canes and the pairs obtained by the system is 2 canes and 2 pairs, the preset type of the hu is a chicken hu, that is, the number of the canes and the pairs of the current mahjong game player cannot form the preset type of the chicken hu, the user can listen to the hu after correspondingly playing cards, and then the user needs to record the current mahjong data of the current mahjong game player to remind the mahjong game player at any time.
In this embodiment, the step S2 of inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result includes:
s21: inputting all mahjong types and tile types into a training model, and training according to the preset mahjong number to obtain a trained prediction model;
s22: acquiring the mahjong quantity of the mahjong data, and inputting the mahjong quantity into the prediction model to obtain the probability of each tile type and the waste tiles corresponding to the tile types; the waste cards are specifically redundant cards in the case of the card type.
In this embodiment, the system inputs all mahjong types and tile types into a training model as a training sample of the training model, and then inputs preset data corresponding to 108 mahjong tiles into the training model for training to obtain a trained prediction model; at the moment, the system can acquire all the mahjong numbers of the current mahjong game player and input the mahjong numbers into the trained prediction model for prediction, so that the probability of each corresponding type of the mahjong in all the mahjong numbers of the current mahjong game player and the redundant waste mahjong if the type of the mahjong is needed can be predicted.
In this embodiment, the step S3 of obtaining the number of all the tiles played on the current mahjong table includes:
s31: counting the number of the current remaining mahjong pieces according to all preset mahjong types and the preset mahjong number;
s32: judging whether the number of the remaining cards is larger than a preset available quantity or not;
s33: if yes, reserving the recommendable corresponding card types according to the number of the residual cards.
In the embodiment, the system counts the number of the remaining tiles which are not played on the current mahjong table through all preset mahjong types and mahjong numbers, and judges whether the current mahjong game player can be supported to play the tiles in the number of the remaining tiles according to the preset number of the available tiles; for example, if the number of the obtained remaining tiles is 1 and 9 thousands, but the tile type of the current mahjong player needing the tile lacks 9 thousands, the preset available amount of the system is more than or equal to 1, that is, the system can judge that the number of the remaining tiles is more than the preset available amount, and the current mahjong player is advised to keep the current tile type; for example, when the number of the remaining 3 tiles is 0 and the current mahjong player needs to lack one tile type of the tile with 3 tiles, and the preset available amount of the system is greater than or equal to 1, that is, the system can determine that the number of the remaining tiles is not greater than the preset available amount, and then the current mahjong player is advised to give up the tile type of the current tile for defending.
In this embodiment, the step S5 of recommending a tile type greater than the preset success rate for the current mahjong game player includes:
s51: obtaining the type of the domino with the maximum current probability according to the number of the current residual dominos and the current playing of the mahjong players; the playing cards comprise eating, hitting and striking bars in mahjong types;
s52: judging whether the income of the tile type is larger than the income preset by the mahjong player or not;
s53: if not, the types of the tiles are not reserved for the mahjong players.
In this embodiment, the system obtains the type of the current card with the highest possible probability for the current mahjong game player according to the number of the current remaining cards and the current playing of the mahjong game player, and judges whether the income corresponding to the type of the current card with the highest playing probability can meet the requirement of the mahjong game player according to the preset income of the mahjong game player; for example, the system obtains that the preset income of the mah-jong game player is 8-16 times, and the maximum probability tile type that the mah-jong game player can combine at present is 4-8 times, that is, the income of the mah-jong game player is not more than the preset income of the mah-jong game player, and the system does not reserve the income unqualified area for the mah-jong game player; for example, the system obtains that the preset income of the mahjong game player is 1-4 times, and the maximum combinable probability card type of the current mahjong game player is 2-4 times, namely the card-playing income of the mahjong game player is larger than the preset income of the mahjong game player, and the system reserves the card-playing type with the unqualified income for the mahjong game player.
In this embodiment, the step S52 of determining whether the benefit of the tile type is greater than the predetermined benefit of the mah-jong gamer includes:
s521: obtaining the preset income of the mahjong players;
s522: judging whether the preset income of the mahjong game player can be realized or not according to the number of all the tiles played on the current mahjong table;
s523: if not, the mahjong game player is advised to give up the card.
In this embodiment, the system determines whether the predetermined benefit of the mahjong game player can be realized by acquiring the predetermined benefit of the current mahjong game player and according to the predetermined benefit of the mahjong game player and the number of all the mahjong pieces played on the current mahjong table; for example, the system acquires that the preset income of the current mahjong game player is 8-16 times, the types of the cards which can be made are all played on the card surface, and the rest cards can only realize the types of the moustache cards which are 4-8 times, namely the preset income of the mahjong game player can not be realized through the rest cards on the card surface, and the system recommends the mahjong game player to give up the moustache cards at the moment and turns into defense; for example, the system acquires that the preset income of the current mahjong game player is 1-4 times, but a lot of card types can still remain on the card surface, and the remaining card types can also realize the mourning type of 1-8 times, namely the preset income of the mahjong game player can be realized through the remaining cards on the card surface, and the system can recommend the mahjong game player to continue mourning at the moment.
Referring to fig. 2, a testing system for simulating a mahjong game according to an embodiment of the present invention includes:
the first acquisition module 10 is used for acquiring the mahjong data of the current upper hand;
the first input module 20 is configured to input the mahjong data into a preset prediction model to obtain a corresponding prediction result;
a second obtaining module 30, configured to obtain the number of all the tiles played on the current mahjong table;
the first judging module 40 is used for judging whether the success rate of the combination of the card types which need to be combined currently is greater than the preset success rate or not according to the prediction result and the number of all the card types;
and the first executing module 50 is configured to recommend a tile type greater than the preset success rate for the current mahjong game player if the current mahjong game player is the current mahjong game player.
In this embodiment, the first obtaining module 10 obtains the mahjong data of the current mahjong player, and the first input module 20 inputs the mahjong data into a preset and trained prediction model for prediction, so as to obtain the hookable tile type and the waste tile type corresponding to the mahjong of the current mahjong player; the second obtaining module 30 obtains the number of all the mahjong tiles played on the current mahjong table, and counts the remaining number of the corresponding mahjong tiles in the number of the mahjong tiles; for example, ten thousand cards are played, and thirty-six cards are played from one to nine ten thousand, and twenty-six cards are remained at the time; for example, twenty sub-cards are played, from one to nine, thirty-six sub-cards are played, and then sixteen sub-cards are left; the system predicts the obtained result from the prediction model, and the first judgment module 40 judges whether the success probability of the combination of the card types which are required to be combined currently is larger than the preset success rate according to the known number of all the card types; for example, the tile type obtained by the system is a ten-thousand-character clear tile, ten tiles with ten thousand characters in all the current tile types are left, the number of the remaining tiles in the hand of the current mahjong game player is ten thousand characters, the probability that the ten thousand characters clear the color is 80% according to the prediction result, the preset success rate of the system is 33%, namely the probability that the tile types required to be combined are successfully combined at the moment is higher than the preset success rate, namely the first execution module 50 recommends the card type with the clear color for the current mahjong game player at the moment; for example, the tile type obtained by the system is a hu, 1 tile remains in all the tile types, the total number of the tiles on the tile surface is 8, the current mahjong game player is in a tile listening stage, the probability that the hu can be obtained according to the prediction result is 12.5%, and under the condition that the preset success rate of the known system is 33%, namely the success rate of combining the tile types required to be combined currently is not greater than the preset success rate, namely the system does not recommend the current mahjong game player to be the hu tile type, and then the recommended game player gives up the game, and the defense is well.
In this embodiment, the method further includes:
the third acquisition module is used for acquiring the type of the current upper-handed mahjong;
the second judgment module is used for judging whether the mahjong types can form a preset waistcoat or a pair;
and the second execution module is used for sequentially arranging the mahjong data according to the preset waists or pairs if the mahjong data is in the preset waists or pairs.
In the embodiment, the system judges whether the mahjong types can form a waistline or a pair according to the preset sequential mahjong piece waistline and pair by acquiring the previous mahjong types of the current mahjong game player; for example, the type of the current mahjong obtained by the system is 123, 123 ten thousand and 123 barrels, two are 6, that is, the number of canes which can be obtained by the system at this time is 123, 123 ten thousand and 123 barrels, and a pair of 6 pairs can be obtained; for example, the types of the current mahjong obtained by the system are 12, 46 and 79, and 113479 ten thousand, that is, the canes which can be obtained by the system do not exist at this time, and the pairs which can be obtained by the system are only one pair of 1 ten thousand.
In this embodiment, the second executing module further includes:
the first acquisition unit is used for acquiring the total number of preset waistlines and pairs;
the first judging unit is used for judging whether the mahjong data can form a preset Hu-card type according to the total number;
and the first execution unit is used for recording the mahjong data of the current upper hand if the current upper hand is not the mahjong data of the current upper hand.
In this embodiment, after the system sorts the mahjong types of the current mahjong game player by obtaining the total number of the waists and the pairs, the system judges whether preset mourning types can be formed according to the number of the waists and the pairs; for example, the total number of the canes and the pairs obtained by the system is 3 canes and 1 pair of pairs, the preset type of the hu is a chicken hu, that is, the number of the canes and the pairs of the current mahjong game player can form the preset type of the hu, and the current mahjong data of the current hand is recorded to remind the game player to play the hu; for example, the total number of the canes and the pairs obtained by the system is 2 canes and 2 pairs, the preset type of the hu is a chicken hu, that is, the number of the canes and the pairs of the current mahjong game player cannot form the preset type of the chicken hu, the user can listen to the hu after correspondingly playing cards, and then the user needs to record the current mahjong data of the current mahjong game player to remind the mahjong game player at any time.
In this embodiment, the first input module further includes:
the first training unit is used for inputting all mahjong types and tile types into a training model, and training according to the preset mahjong number to obtain a trained prediction model;
the second acquisition unit is used for acquiring the mahjong quantity of the mahjong data and inputting the mahjong quantity into the prediction model to obtain the probability of each tile type and the waste tiles corresponding to the tile types; the waste cards are specifically redundant cards in the case of the card type.
In this embodiment, the system inputs all mahjong types and tile types into a training model as a training sample of the training model, and then inputs preset data corresponding to 108 mahjong tiles into the training model for training to obtain a trained prediction model; at the moment, the system can acquire all mahjong numbers of the current mahjong game player and input the mahjong numbers into the trained prediction model for prediction, so that the probability of each corresponding tile type in all mahjong numbers of the current mahjong game player and the redundant waste tiles of the tile type can be predicted.
In this embodiment, the second obtaining module further includes:
the first statistical unit is used for counting the number of the current remaining mahjong according to all preset mahjong types and mahjong numbers;
the second judging unit is used for judging whether the number of the remaining cards is larger than the preset available quantity or not;
and the second execution unit is used for reserving the recommendable corresponding card types according to the number of the residual cards if the card types are the same.
In the embodiment, the system counts the number of the remaining tiles on the current mahjong table which are not played through all preset mahjong types and mahjong numbers, and judges whether the current mahjong game player can be supported to play the tiles in the number of the remaining tiles according to the preset available number of the tiles; for example, if the number of the obtained remaining tiles is 1 and 9 thousands, but the tile type of the current mahjong player needing the tile lacks 9 thousands, the preset available amount of the system is more than or equal to 1, that is, the system can judge that the number of the remaining tiles is more than the preset available amount, and the current mahjong player is advised to keep the current tile type; for example, when the number of the remaining 3 tiles is 0 and the current mahjong player needs to lack one tile type of the tile with 3 tiles, and the preset available amount of the system is greater than or equal to 1, that is, the system can determine that the number of the remaining tiles is not greater than the preset available amount, and then the current mahjong player is advised to give up the tile type of the current tile for defending.
In this embodiment, the first execution module further includes:
the third acquisition unit is used for acquiring the type of the picnic with the maximum current probability according to the current number of the remaining mahjong and the current playing of the mahjong player; the playing cards comprise eating, hitting and hitting bars in mahjong types;
a third judging unit, configured to judge whether a profit of the tile type is greater than a profit preset by the mahjong player;
and the third execution unit is used for not reserving the tile type for the mahjong player if the judgment result is no.
In this embodiment, the system obtains the type of the current card with the highest possible probability for the current mahjong game player according to the number of the current remaining cards and the current playing of the mahjong game player, and judges whether the income corresponding to the type of the current card with the highest playing probability can meet the requirement of the mahjong game player according to the preset income of the mahjong game player; for example, the system obtains that the preset income of the mah-jong game player is 8-16 times, and the maximum probability tile type that the mah-jong game player can combine at present is 4-8 times, that is, the income of the mah-jong game player is not more than the preset income of the mah-jong game player, and the system does not reserve the income unqualified area for the mah-jong game player; for example, the system obtains that the preset income of the mahjong game player is 1-4 times, and the maximum probability card type of the combination of the current mahjong game players is 2-4 times, namely the income of the mahjong game player is larger than the preset income of the mahjong game player, and the system can reserve the income of the mahjong game player with the card type which does not reach the standard.
In this embodiment, the third determining unit further includes:
the first acquisition subunit is used for acquiring the preset income of the mahjong player;
the first judgment subunit is used for judging whether the preset income of the mahjong game player can be realized or not according to the number of all the mahjong pieces played on the current mahjong table;
and the first execution subunit is used for recommending the mahjong game player to give up the card if the mahjong game player does not give up the card.
In this embodiment, the system determines whether the predetermined benefit of the mahjong game player can be realized by acquiring the predetermined benefit of the current mahjong game player and according to the predetermined benefit of the mahjong game player and the number of all the mahjong pieces played on the current mahjong table; for example, the system acquires that the preset income of the current mahjong game player is 8-16 times, the types of the cards which can be made are all played on the card surface, and the rest cards can only realize the types of the picnic cards which are 4-8 times, namely the preset income of the mahjong game player can not be realized through the rest cards on the card surface, and the system suggests the mahjong game player to give up the picnic cards and turn into defense; for example, the system obtains that the preset income of the current mahjong game player is 1-4 times, a lot of card types can still remain on the card surface, and the remaining card types can also realize the card types 1-8 times, namely the preset income of the mahjong game player can be realized through the remaining cards on the card surface, and the system can suggest the mahjong game player to continue playing cards.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A test method for simulating a mahjong game is characterized by comprising the following steps:
acquiring mahjong data of a current upper hand;
inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result;
acquiring the number of all the mahjong tiles played on the current mahjong table;
judging whether the success rate of the combination of the current card types required to be combined is greater than the preset success rate or not according to the prediction result and the number of all the card types;
if yes, recommending the mahjong type which is larger than the preset success rate for the current mahjong game player.
2. The testing method for simulating a mahjong game according to claim 1, wherein the step of obtaining the mahjong data of the current upper hand comprises:
obtaining the type of the current upper hand mahjong;
judging whether the mahjong types can form a preset waistcoat or pair;
if yes, the mahjong data are sequentially arranged according to the preset waists or pairs.
3. The method as claimed in claim 2, wherein the step of arranging the mahjong data according to the predetermined canes or pairs comprises:
acquiring the total number of preset waistlines and pairs;
judging whether the mahjong data can form a preset Hu-pai type according to the total amount;
if not, recording the mahjong data of the current upper hand.
4. The testing method for simulating the mahjong game according to claim 1, wherein the step of inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result comprises:
inputting all mahjong types and picnic tile types into a training model, and training according to the preset mahjong number to obtain a trained prediction model;
acquiring the mahjong quantity of the mahjong data, and inputting the mahjong quantity into the prediction model to obtain the probability of each tile type and the waste tiles corresponding to the tile types; the waste cards are specifically redundant cards in the case of the card type.
5. The testing method for simulating a mahjong game according to claim 1, wherein the step of obtaining the number of all the mahjong tiles played on the current mahjong table comprises:
counting the number of the current remaining mahjong pieces according to all preset mahjong types and the preset mahjong number;
judging whether the number of the remaining cards is larger than a preset available quantity or not;
if yes, reserving the recommendable corresponding card types according to the number of the residual cards.
6. The testing method for simulating a mahjong game according to claim 1, wherein the step of recommending a tile type for the current mahjong game player which is greater than the preset success rate comprises:
obtaining the type of the domino with the maximum current probability according to the number of the current residual dominos and the current playing of the mahjong players; the playing cards comprise eating, hitting and striking bars in mahjong types;
judging whether the income of the tile type is larger than the income preset by the mahjong player or not;
if not, the types of the tiles are not reserved for the mahjong players.
7. The method as claimed in claim 6, wherein the step of determining whether the return of the tile type is larger than the predetermined return of the mah-jong player comprises:
obtaining the preset income of the mahjong gamer;
judging whether the preset income of the mahjong game player can be realized or not according to the number of all the tiles played on the current mahjong table;
if not, the mahjong game player is advised to give up the card.
8. A testing system for simulating a mahjong game, comprising:
the first acquisition module is used for acquiring the mahjong data of the current upper hand;
the first input module is used for inputting the mahjong data into a preset prediction model to obtain a corresponding prediction result;
the second acquisition module is used for acquiring the number of all the mahjong tiles played on the current mahjong table;
the first judgment module is used for judging whether the probability of success of the combination of the current card types needing to be combined is greater than the preset success rate or not according to the prediction result and the number of all the card types;
and the first execution module is used for recommending the mahjong types larger than the preset success rate for the current mahjong game player if the current mahjong game player is the current mahjong game player.
9. The testing system for simulating a mahjong game of claim 8, further comprising:
the third acquisition module is used for acquiring the type of the current upper-hand mahjong;
the second judgment module is used for judging whether the mahjong types can form a preset waistcoat or a pair;
and the second execution module is used for carrying out sequential arrangement on the mahjong data according to the preset waists or pairs if the mahjong data are in the positive.
10. The testing system for simulating a mahjong game according to claim 8, wherein the second executing module further comprises:
the first acquisition unit is used for acquiring the total number of preset waistlines and pairs;
the first judging unit is used for judging whether the mahjong data can form a preset Hu-card type according to the total number;
and the first execution unit is used for recording the mahjong data of the current upper hand if the current upper hand is not the mahjong data of the current upper hand.
CN202210825957.4A 2022-07-14 2022-07-14 Testing method and system for simulating mahjong game Pending CN115177958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210825957.4A CN115177958A (en) 2022-07-14 2022-07-14 Testing method and system for simulating mahjong game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210825957.4A CN115177958A (en) 2022-07-14 2022-07-14 Testing method and system for simulating mahjong game

Publications (1)

Publication Number Publication Date
CN115177958A true CN115177958A (en) 2022-10-14

Family

ID=83518850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210825957.4A Pending CN115177958A (en) 2022-07-14 2022-07-14 Testing method and system for simulating mahjong game

Country Status (1)

Country Link
CN (1) CN115177958A (en)

Similar Documents

Publication Publication Date Title
US20180161673A1 (en) Using telemetry data in a distributed computing environment to address complex problems
CN106489259A (en) Target is reached online quick question-and-answer game and provides method and system
US20160110963A1 (en) System and method for dynamically valuating players during a fantasy draft
CN109523201A (en) One kind efficiently admiring class method for evaluating quality based on big data era
CN108768922B (en) Chess and card information processing system and method
CN107749006A (en) Game appraisal procedure, device and equipment
Drikos et al. Data benchmarking through a longitudinal study in high-level men’s volleyball
EP1503359A1 (en) Evaluation system, method and program for evaluating ability
US9700805B2 (en) System and method for automated fantasy drafting
CN107335214A (en) A kind of cheat detection method of Xinchang Random Factor Mahjong
CN115177958A (en) Testing method and system for simulating mahjong game
CN112581826A (en) Piano teaching method, system and medium
US9072970B2 (en) System and method for valuating a player in a fantasy draft based on user-defined league rules
CN113935618B (en) Evaluation method and device for chess playing capability, electronic equipment and storage medium
CN110263937A (en) A kind of data processing method, equipment and storage medium
CN110414609A (en) Method and device is determined based on the object of Incompletely information games
US8951107B2 (en) System and method for non-sequential automated fantasy drafting
CN108664842A (en) A kind of construction method and system of Lip Movement Recognition model
CN112023383A (en) Intelligent automatic settlement system
CN112016479A (en) Chess and card game auxiliary system
US20150251085A1 (en) Trusted secret word game
CN112337081B (en) Interactive method for realizing voice guessing game
TWI773619B (en) Automatic race schedule system
van der Genugten et al. Texas Hold’em: A game of skill
CN117271904B (en) Game recommendation method and system based on big data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination