A bridge robot

By dynamically controlling the number of simulated card deals and scoring calculations, the problem of excessive computational resource consumption or insufficient decision-making level in existing bridge robot card-playing algorithms is solved, and a strategy for efficient card-playing in bridge robots is realized.

CN116021517BActive Publication Date: 2024-09-03XINRUI QIAOPAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211719296.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-09-03
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

The existing bridge robot's card-playing algorithm presets a fixed simulated card-dealing amount, which makes it difficult to balance saving computing resources and improving decision-making level, resulting in low decision-making level or excessive consumption of computing resources.

Method used

Through the combination of processor and memory, the number of simulated card dealing is dynamically controlled, the card issuing algorithm program is used to collect card table information in real time, the card dealing is simulated and the card issuing score is calculated, and based on the score difference and variance value, it is judged whether to continue the simulated card dealing until it is determined Candidate cards.

Benefits of technology

While ensuring the level of decision-making, it effectively saves computing resources, improves the efficiency and accuracy of the card-playing algorithm, and is suitable for dynamic card-playing strategies of different card types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116021517B
    Figure CN116021517B
Patent Text Reader

Abstract

This application relates to a bridge robot, belonging to the field of robotics. The bridge robot includes a processor, a memory, an information collector, and a card-playing algorithm program stored in the memory and executable by the processor. The processor calculates candidate plays based on the cards in the bridge robot's hand, the dummy's hand, previous bidding information, and play information on the table, using the play evaluation function in the card-playing algorithm program. It calculates a k-value using a decision evaluation function, and determines whether the simulated dealing function should continue based on the k-value, a preset k', the number of simulated dealing rounds N1, and a preset N', ultimately obtaining candidate plays. The processor then controls the bridge robot to play the final candidate plays. The bridge robot dynamically controls the number of simulated dealing rounds, minimizing computational resources used in the card-playing algorithm while maintaining decision-making efficiency, thus achieving the goal of conserving computational resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of robotics technology, and specifically relates to a bridge robot. Background Art

[0002] Bridge is a four-player card game played by two players. It is a civilized, competitive and intellectual game for all ages. With the development of technology, bridge can be played online and between humans and machines. In human-machine games, players can be real players or robot players. When robot players compete with real players, the card-playing algorithm needs to be involved. The card-playing algorithm enables robot players to have certain strength.

[0003] The card-playing algorithm is generally that the robot player simulates N decks of cards to other players with unknown cards in hand based on the known information on the table, and makes an evaluation based on the card information in the N decks to get the score of each card in hand. The card with the highest score is the candidate to play. After the number of cards dealt reaches a certain value, all possible situations have been fully considered. If the number of cards dealt continues to increase, the effect of improving the decision-making level will not be obvious, and the corresponding benefits of the computing resources increased to increase the number of cards dealt will decrease. This value can be regarded as the best simulated number of cards dealt for this deck of cards.

[0004] Under the constraints of conventional space and time resources, N is generally between one hundred and several hundred, and the probability of corresponding to the invisible player's cards is very small, which means that there may be many situations that cannot be covered, and the scores of candidate cards are accidental. Increasing the value of N can reduce this accidentality and find a truly good card with a higher probability, corresponding to a higher decision-making level of the robot, but more computing resources are required when simulating card dealing and evaluation.

[0005] The optimal number of simulated deals for different cards in the hands of robot players is different. For some cards, dozens of decks may be the best, while for some cards, hundreds of decks may be needed. The card-playing algorithm used by existing bridge robots has a preset fixed number of simulated deals, which makes it difficult to strike a balance between saving computing resources and improving decision-making levels. Summary of the invention

[0006] To this end, the present invention provides a bridge robot to solve the problem that a fixed simulated card dealing amount is preset in the card-playing algorithm used by the existing bridge robot, which makes it difficult to balance saving computing resources and improving decision-making level.

[0007] To achieve the above objectives, this application adopts the following technical solutions:

[0008] The present invention provides a bridge robot, comprising a processor, a memory, an information collector, and a card-playing algorithm program stored in the memory and executable by the processor;

[0009] The processor presets a variable value k' and a maximum number of simulated card dealing pairs N' for determining whether to end the simulated card dealing and stores them in a memory;

[0010] The information collector collects the cards in the exposed hand, the previous bidding information and the card-playing information on the card table in real time. When the bridge robot needs to play cards, the processor simulates the cards that may appear in the other two houses by using the simulated card-dealing function of the card-dealing algorithm program according to the cards in the bridge robot's hand, the cards in the exposed hand, the previous bidding information and the card-playing information on the card table, and stores each simulated card in the other two houses in the memory;

[0011] The processor obtains the simulated cards from each other two players, and then simulates the bridge robot playing cards, and uses the card playing evaluation function in the card playing algorithm program to calculate the playing score of the bridge robot's cards and store them in the memory, and the card with the highest playing score is set as a candidate card;

[0012] And, obtain the card playing scores of the candidate cards and other cards in the hand of the bridge robot, calculate the k value by using the decision evaluation function in the card playing algorithm program, and determine whether the simulated card dealing function continues to deal cards according to the k value, the preset k', the number of simulated card dealing decks N1 and the preset N'; wherein, if the intended card dealing function is controlled to continue to deal cards, then the simulated card dealing function is continued to determine the N2 decks of cards to be issued according to the cards in the hand of the bridge robot, the cards in the open hand, the previous calling information and card playing information on the table, and update N1 to: N1 = N1 + N2, the card playing evaluation function calculates the candidate cards according to the updated N1 decks, and after calculating the k value by using the decision evaluation function, it is continued to determine whether simulated card dealing is needed according to k, k', N1, and N', and if necessary, the simulated card dealing, the k value calculation and the determination of whether to continue simulated card dealing are repeated until it is determined that the simulated card dealing is stopped, and the candidate cards calculated in the last round are set as the final candidate cards;

[0013] The processor controls the bridge robot to issue the final candidate cards.

[0014] Further, the processor obtains the cards in the other two hands of each deck of cards that are simulated and dealt from the memory, and simulates the bridge robot playing cards according to the cards in the other two hands in each deck of cards, thereby calculating the score of each card in the hand of the bridge robot in each deck of cards, and storing the score in the memory; and obtains the score of each card in the hand of the bridge robot in each deck of cards, and calculates the average score Ex of each card in the hand of the bridge robot in N1 decks of cards, which is the score of each card in the hand of the bridge robot, and the calculation formula is:

[0015]

[0016] Among them, x represents any card in the hand of the bridge robot, N1 is the total number of simulated decks, i represents one of the N1 decks, x i Represents the score of x in the i-th deck of cards; and, compares the scores of each card in the bridge robot's hand, sets the card with the highest score as the candidate card to be played as a, and stores the scores of each card in the bridge robot's hand and the candidate card to be played a.

[0017] Further, the processor obtains from the memory the score of each card in the hand of the bridge robot in each deck of cards, the score of each card in the hand of the bridge robot and the score of the candidate card a, and calculates the k value; and obtains the preset k' and N' from the memory, compares the k value with the preset k', and compares the number of simulated decks N1 with the preset N'. If k<=k' and N1<=N', the processor executes the decision evaluation function to control the simulated card dealing function to issue N2 decks of cards that may appear for the other two players, and updates N1 to :N1=N1+N2, the card-playing evaluation function calculates the candidate cards according to the updated N1 deck, and after calculating the k value using the decision-making evaluation function, it continues to judge whether it is necessary to simulate the card-playing according to k, k', N1, and N'. If necessary, it continues to repeat the simulated card-playing, calculate the k value, and judge whether to continue the simulated card-playing until k>k' or N1>M. The processor executes the decision-making evaluation function to control the simulated card-playing function to stop the card-playing, and the candidate cards calculated in the last round are set as the final candidate cards. The bridge robot plays card a to complete the card-playing.

[0018] Further, the processor obtains from the memory the score of each card in the hand of the bridge robot in each deck of cards, the score of each card in the hand of the bridge robot, and the score of the candidate card a;

[0019] And, calculate the score difference D(a,y) between the candidate card a and any card in the hand of the bridge robot except the candidate card, and the calculation formula is:

[0020] D(a,y)=Ea–Ey;

[0021] Wherein, y represents any card in the hand of the bridge robot except the candidate card, Ey represents the score of any card in the hand of the bridge robot except the candidate card, a is the candidate card, and Ea represents the score of candidate card a;

[0022] And, calculate the score difference d(a, y, i) between the candidate card a and each card in the hand of the bridge robot except the candidate card, and the calculation formula is:

[0023] d(a,y,i)=a i –y i ;

[0024] Among them, y represents any card in the hand of the bridge robot except the candidate card, i represents the i-th deck of cards in the simulation, and a i is the score of candidate card a in the ith hand, y i Represents the score of any card in the hand of the bridge robot except the candidate card;

[0025] And, calculate the variance value var(a,y) of the difference between the candidate card a and each card in the hand of the bridge robot except the candidate card, and the calculation formula is:

[0026]

[0027] Wherein, y represents any card in the hand of the bridge robot except the candidate card; and, calculate the k between the candidate card a and each card in the hand of the bridge robot except the candidate card. y The value is calculated as:

[0028] k y =|D(a,y)| / sqrt(var(a,y) / N1);

[0029] Where sqrt is the square root function; and, take k y The minimum value is the k value.

[0030] Furthermore, the processor determines the score of each card in the hand of the bridge robot in each deck of cards by the following specific process: after the simulated dealing function simulates dealing a deck of cards based on the cards in the hand of the bridge robot, the cards in the exposed hand, and the previous calling information and playing information on the table, the bridge robot simulates playing the cards based on the simulated card information dealt to the other two players, and then uses the existing double exposed hand tool to calculate the score of each card played by the bridge robot according to the contract.

[0031] Furthermore, the score value is associated with the contract in the bridge rules, different contracts have different scores, and the contract in each game must be the same.

[0032] This application adopts the above technical solution, which has at least the following beneficial effects:

[0033] The processor in the bridge robot can execute the card-playing algorithm program in the memory. The card-playing evaluation function in the card-playing algorithm program can calculate the score of the cards in the bridge robot's hand and determine the candidate cards to be played. The decision-making evaluation function feeds the evaluation results back to the simulation card-dealing function and dynamically controls the number of simulated card-dealing. In this way, while ensuring the decision-making level, the computing resources used for the card-playing algorithm are minimized, thereby achieving the purpose of saving computing resources.

[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0036] Figure 1 It is a schematic diagram of the card-playing control process of the bridge robot of the present invention;

[0037] Figure 2 This is a schematic diagram of the existing bridge robot card-playing control process;

[0038] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other implementation methods obtained by ordinary technicians in the field without creative work belong to the scope of protection of the present application.

[0040] In the related technology, when a robot player plays cards, it will only simulate the issuing of a fixed number of cards, and calculate the candidate cards through this fixed number of simulated information. Since the robot player has different cards in each round, simulating the issuing of the same number of cards in each round will lead to two situations. The first situation is that the insufficient number of simulated cards will lead to a low decision-making level, thus making the bridge robot's card-playing level low; the second situation is that the excessive number of simulated cards will lead to too many computing resources used for dealing cards, which will slow down the robot's processing speed, affect the card-playing speed, and lead to a poor user experience.

[0041] In the embodiment of the present application, when the bridge robot plays cards, the number of simulated card deals can be dynamically determined based on the cards in the bridge robot's hand, the cards in the exposed hand, and previous calling information and playing information on the table. While ensuring the decision-making level, the computing resources used for the card-playing algorithm are minimized, thereby achieving the purpose of saving computing resources.

[0042] The method for real-time message push in this application is described below through specific embodiments.

[0043] See also Figure 1 , Figure 1 It is a schematic diagram of a card-playing control process of a bridge robot provided according to an exemplary embodiment of the present invention, wherein the bridge robot comprises a processor, a memory, an information collector, and a card-playing algorithm program stored in the memory and executable by the processor;

[0044] The processor presets a variable value k' and a maximum number of simulated card dealing pairs N' for determining whether to end the simulated card dealing and stores them in a memory;

[0045] The information collector collects the cards in the exposed hand, the previous bidding information and the card-playing information on the card table in real time. When the bridge robot needs to play cards, the processor simulates the cards that may appear in the other two houses by using the simulated card-dealing function of the card-dealing algorithm program according to the cards in the bridge robot's hand, the cards in the exposed hand, the previous bidding information and the card-playing information on the card table, and stores each simulated card in the other two houses in the memory;

[0046] The processor obtains the simulated cards from each other two players, and then simulates the bridge robot playing cards, and uses the card playing evaluation function in the card playing algorithm program to calculate the playing score of the bridge robot's cards and store them in the memory, and the card with the highest playing score is set as a candidate card;

[0047] And, obtain the card playing scores of the candidate cards and other cards in the hand of the bridge robot, calculate the k value by using the decision evaluation function in the card playing algorithm program, and determine whether the simulated card dealing function continues to deal cards according to the k value, the preset k', the number of simulated card dealing decks N1 and the preset N'; wherein, if the intended card dealing function is controlled to continue to deal cards, then the simulated card dealing function is continued to determine the N2 decks of cards to be issued according to the cards in the hand of the bridge robot, the cards in the open hand, the previous calling information and card playing information on the table, and update N1 to: N1 = N1 + N2, the card playing evaluation function calculates the candidate cards according to the updated N1 decks, and after calculating the k value by using the decision evaluation function, it is continued to determine whether simulated card dealing is needed according to k, k', N1, and N', and if necessary, the simulated card dealing, the k value calculation and the determination of whether to continue simulated card dealing are repeated until it is determined that the simulated card dealing is stopped, and the candidate cards calculated in the last round are set as the final candidate cards;

[0048] The processor controls the bridge robot to issue the final candidate cards.

[0049] It should be noted that the bridge robot provided in this embodiment is applicable to various types of bridge. It can be applicable to the corresponding type of bridge by simply modifying the rule part of the card-playing algorithm program in the memory.

[0050] In specific practice, according to actual use experience, the relationship between the number of simulated card dealing pairs N1 each time and the preset maximum number of simulated card dealing pairs N' is: N1=N' / 4; the preset variable value k' for determining whether to end the simulated card dealing is preferably 3.

[0051] It can be understood that the technical solution provided by this embodiment can dynamically determine the number of simulated card deals based on the cards in the bridge robot's hand, the cards in the open hand, and the previous calling information and playing information on the table when the bridge robot plays cards. While ensuring the decision-making level, the computing resources used for the card-playing algorithm are minimized, thereby achieving the goal of saving computing resources.

[0052] In one embodiment, the processor obtains the cards in the other two hands of each deck of cards from the memory, simulates the bridge robot playing cards according to the cards in the other two hands in each deck of cards, thereby calculating the score of each card in the hand of the bridge robot in each deck of cards, and stores the score in the memory; and obtains the score of each card in the hand of the bridge robot in each deck of cards, calculates the minimum score Ex of each card in the hand of the bridge robot in N1 decks of cards, that is, the score of each card in the hand of the bridge robot, and the calculation formula is:

[0053]

[0054] Among them, x represents any card in the hand of the bridge robot, N1 is the total number of simulated decks, i represents one of the N1 decks, x i Represents the score of x in the i-th deck of cards; and, compares the scores of each card in the bridge robot's hand, sets the card with the highest score as the candidate card to be played as a, and stores the scores of each card in the bridge robot's hand and the candidate card to be played a.

[0055] Specifically, after the processor executes the card-playing algorithm program, it obtains the simulated cards in the hands of the other two players; and determines the score of each card in the hand of the bridge robot in each deck of cards. The specific process is: after the simulated card-dealing function simulates a deck of cards based on the cards in the hand of the bridge robot, the cards in the open hand, and the previous calling information and card-playing information on the table, the bridge robot simulates playing cards based on the simulated card information dealt to the other two players, and then uses the existing double open hand tool to calculate the score of each card played by the bridge robot according to the contract.

[0056] It should be noted that the score value is related to the contract in the bridge rules. Different contracts have different scores. The contract in each game must be the same. The bridge rules need to be written into the card-playing algorithm program to take effect.

[0057] It can be understood that the bridge robot calculates the score of each card in its hand in each simulated deck of cards, and then calculates the average score of each card in its hand in N1 decks based on the score, which is the score of each card in its hand, and the card in the hand with the highest score is set as a candidate for playing; the candidate playing cards determined by this scoring model enable the bridge robot to not only play according to the rules, but also to play at a certain level each time.

[0058] In one embodiment, the processor obtains from the memory the score of each card in the hand of the bridge robot in each deck of cards, the score of each card in the hand of the bridge robot and the score of the candidate card a, and calculates the k value; and obtains the preset k' and N' from the memory, compares the k value with the preset k', and compares the number of simulated decks N1 with the preset N'. If k<=k' and N1<=N', the processor executes the decision evaluation function to control the simulated card dealing function to issue N2 decks of cards that may appear in the other two houses, and updates N1. The card-playing evaluation function calculates candidate cards according to the updated N1 deck, and after calculating the k value using the decision-making evaluation function, it continues to judge whether it is necessary to simulate the card-playing according to k, k', N1, and N'. If necessary, it continues to repeat the simulated card-playing, calculate the k value, and judge whether to continue the simulated card-playing until k>k' or N1>M. The processor executes the decision-making evaluation function to control the simulated card-playing function to stop the card-playing, and the candidate cards calculated in the last round are set as the final candidate cards. The bridge robot plays card a to complete the card-playing.

[0059] Specifically, the bridge robot needs to calculate the k value for determining whether to continue simulating dealing cards, and the processor obtains from the memory the score of each card in the hand of the bridge robot in each deck of cards, the score of each card in the hand of the bridge robot, and the score of the candidate card a;

[0060] And, calculate the score difference D(a,y) between the candidate card a and any card in the hand of the bridge robot except the candidate card, and the calculation formula is:

[0061] D(a,y)=Ea–Ey;

[0062] Wherein, y represents any card in the hand of the bridge robot except the candidate card, Ey represents the score of any card in the hand of the bridge robot except the candidate card, a is the candidate card, and Ea represents the score of candidate card a;

[0063] And, calculate the score difference d(a, y, i) between the candidate card a and each card in the hand of the bridge robot except the candidate card, and the calculation formula is:

[0064] d(a,y,i)=a i –y i ;

[0065] Among them, y represents any card in the hand of the bridge robot except the candidate card, i represents the i-th deck of cards in the simulation, and a i is the score of candidate card a in the ith hand, y i Represents the score of any card in the hand of the bridge robot except the candidate card;

[0066] And, calculate the variance value var(a,y) of the difference between the candidate card a and each card in the hand of the bridge robot except the candidate card, and the calculation formula is:

[0067]

[0068] Wherein, y represents any card in the hand of the bridge robot except the candidate card; and, calculate the k between the candidate card a and each card in the hand of the bridge robot except the candidate card. y The value is calculated as:

[0069] k y =|D(a,y)| / sqrt(var(a,y) / N1);

[0070] Where sqrt is the square root function; and, take k y The minimum value is the k value.

[0071] It should be noted that the variable value k' used to determine whether to end the simulated card dealing can theoretically be set to any positive number. Taking into account the usage effect and based on actual usage experience, the preset variable value k' used to determine whether to end the simulated card dealing is preferably 3, which can best guarantee the card-playing evaluation effect while taking into account saving the computing resources used for the card-playing algorithm program.

[0072] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0073] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A bridge robot, characterized in that: It includes a processor, a memory, an information collector, and a card-playing algorithm program stored in the memory and executable by the processor; The processor presets a variable value k' and a maximum number of simulated card dealing pairs N' for determining whether to end the simulated card dealing and stores them in a memory; The information collector collects the cards in the exposed hand, the previous bidding information and the card-playing information on the card table in real time. When the bridge robot needs to play cards, the processor simulates the cards that may appear in the other two houses by using the simulated card-dealing function of the card-dealing algorithm program according to the cards in the bridge robot's hand, the cards in the exposed hand, the previous bidding information and the card-playing information on the card table, and stores each simulated card in the other two houses in the memory; The processor obtains the simulated cards from each other two players, and then simulates the bridge robot playing cards. The processor calculates the playing scores of the bridge robot's cards using the playing evaluation function in the playing algorithm program and stores them in the memory. The card with the highest playing score is set as a candidate playing card. And, obtain the card playing scores of the candidate cards and other cards in the hand of the bridge robot, calculate the k value by using the decision evaluation function in the card playing algorithm program, and determine whether the simulated card playing function continues to deal cards according to the k value, the preset k', the number of simulated card playing decks N1 and the preset N'; wherein, if the simulated card playing function is controlled to continue to deal cards, then the simulated card playing function is continued to determine the N2 decks of cards to be issued according to the cards in the hand of the bridge robot, the cards in the open hand, the previous calling information and card playing information on the table, and update N1 to: N1 = N1 + N2, the card playing evaluation function calculates the candidate cards according to the updated N1 decks, and after calculating the k value by using the decision evaluation function, it is continued to determine whether simulated card playing is needed according to k, k', N1, and N', and if necessary, the simulated card playing, the k value is calculated and the judgment is made whether to continue the simulated card playing, until it is judged that the simulated card playing is stopped, and the candidate cards calculated in the last round are set as the final candidate cards; The processor controls the bridge robot to issue the final candidate cards; The processor obtains the cards in the other two hands of each deck of cards from the memory, simulates the bridge robot playing cards according to the cards in the other two hands in each deck of cards, thereby calculating the score of each card in the hand of the bridge robot in each deck of cards, and stores the score in the memory; and obtains the score of each card in the hand of the bridge robot in each deck of cards, calculates the average score Ex of each card in the hand of the bridge robot in N1 decks of cards, that is, the score of each card in the hand of the bridge robot, and the calculation formula is: Among them, x represents any card in the hand of the bridge robot, N1 is the total number of simulated decks, i represents one of the N1 decks, x i represents the score of x in the i-th deck; and, compares the scores of each card in the bridge robot's hand, sets the card with the highest score as the candidate card to be played as a, and stores the scores of each card in the bridge robot's hand and the candidate card to be played a; The processor obtains from the memory the score of each card in the hand of the bridge robot in each deck of cards, the score of each card in the hand of the bridge robot and the score of the candidate card a, and calculates the k value; and obtains the preset k' and N' from the memory, compares the k value with the preset k', and compares the number of simulated decks N1 with the preset N'. If k<=k' and N1<=N', the processor executes the decision evaluation function to control the simulated card dealing function to issue N2 decks of cards that may appear in the other two houses, and updates N1 to: N1 =N1+N2, the card-playing evaluation function calculates the candidate cards according to the updated N1 deck, and after calculating the k value using the decision-making evaluation function, it continues to judge whether it is necessary to simulate the card-playing according to k, k', N1, and N'. If necessary, it continues to repeat the simulated card-playing, calculate the k value, and judge whether to continue the simulated card-playing until k>k' or N1>M, then the processor executes the decision-making evaluation function to control the simulated card-playing function to stop the card-playing, and the candidate cards calculated in the last round are set as the final candidate cards, and the bridge robot plays the card a to complete the card-playing; The processor obtains from the memory the score of each card in the hand of the bridge robot in each deck of cards, the score of each card in the hand of the bridge robot and the score of the candidate card a; And, calculate the score difference D(a,y) between the candidate card a and any card in the hand of the bridge robot except the candidate card, and the calculation formula is: D(a,y)=Ea-Ey; Wherein, y represents any card in the hand of the bridge robot except the candidate card, Ey represents the score of any card in the hand of the bridge robot except the candidate card, a is the candidate card, and Ea represents the score of candidate card a; And, calculate the score difference d(a, y, i) between the candidate card a and each card in the hand of the bridge robot except the candidate card, and the calculation formula is: d(a,y,i) = a i -and i ; Among them, y represents any card in the hand of the bridge robot except the candidate card, i represents the i-th deck of cards in the simulation, and a i is the score of candidate card a in the ith hand, y i Represents the score of any card in the hand of the bridge robot except the candidate card; And, calculate the variance value var(a,y) of the difference between the candidate card a and each card in the hand of the bridge robot except the candidate card, and the calculation formula is: Wherein, y represents any card in the hand of the bridge robot except the candidate card; and, calculate the k between the candidate card a and each card in the hand of the bridge robot except the candidate card. y The value is calculated as: <h2 style=";text-align:left;direction:ltr">k<h2 style=";text-align:left;direction:ltr"> y <h2 style=";text-align:left;direction:ltr"> (|D(a,y)| / sqrt(var(a,y) / N1)) Where sqrt is the square root function; and, take k y The minimum value is the k value.

2. The bridge robot according to claim 1, characterized in that: The specific process of the processor determining the score of each card in the bridge robot's hand in each deck of cards is as follows: after the simulated card dealing function simulates dealing a deck of cards based on the cards in the bridge robot's hand, the cards in the exposed hand, and the previous calling information and card playing information on the table, the bridge robot simulates playing the cards based on the simulated card information dealt to the other two players, and then uses the existing double exposed hand tool to calculate the score of each card played by the bridge robot according to the contract.

3. The bridge robot according to claim 2, characterized in that: The score values ​​are based on the contracts in the rules of bridge. Different contracts have different scores, and the contract in each game must be the same.