Description: Design of a 21-point game, rules of the game are as follows: two players, one person, one computer. First, the computer randomly send two cards to a human player (cards can not be repeated, in the form of a color card grades, such as hearts 8), then the players through their own judgment and then choose whether to continue to license. If so, then continue randomly send a card to the player, if this case all the points of the cards is greater than 21, it is determined that the player to lose, if not, then the player can continue to choose to license or not. If you do not license, the end stage of human players. Turn the computer. Computer stage and the stage is basically the same players. Computer first two cards they want, and then by the computer to determine whether to continue to license its own, is the most important basis for judging human players just won close hand. The winners and losers are in accordance with the number of points the two cards, the winning party is one of the
To Search:
File list (Check if you may need any files):
24.cpp