You are on page 1of 5

Poker card game using python

CHAPTER1: INTRODUCTION

1.1 Pork card game


In poker, players form sets of playing cards, called hands, according to the rules of
the game. Each hand has a rank, which is compared against the ranks of other hands
participating in the show down to decide who wins the pot. In high games, like Texas
hold them and seven-card stud, the highest-ranking hands win. In low games, like razz,
the lowest-ranking hands win. In high-low split games, both the highest-ranking and
lowest-ranking hands win, though different rules are used to rank the high and low
hands. Each hand belongs to a category determined by the patterns formed by its cards.
A hand in a higher-ranking category always ranks higher than a hand in a lower-ranking
category. A hand is ranked within its category using the ranks of its cards. Individual
cards are ranked, from highest to lowest: A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3 and 2.
However, aces have the lowest rank under ace-to-five low or ace-to-six low rules, or
under high rules as part of a five-high straight or straight flush. Suits are not ranked, so
hands that differ by suit alone are of equal rank. There are nine categories of hand when
using a standard 52-card desk, except under ace-to-five low rules where straights,
flushes and straight flushes are not recognized. An additional category, five of a kind,
exists when using one or more wild cards. The fewer hands a category contains , the
higher its rank.
1.1 Pork card game

Over the last decade, Texas hold them poker has become a challenge problem and
common test bed for researchers studying artificial intelligence and computational game
theory. Poker has proved popular for this task because it is a canonical example of a
game with imperfect information and stochastic outcomes. Since 2006, the Annual
Computer Poker Competition (ACPC) has served as a venue for researchers to play their
poker agents against each other, revealing which artificial intelligence techniques are
effective in practice. The competition has driven research in the field of computational
game theory, resulting in algorithms capable of finding close approximations to optimal
strategies in ever larger games. The size of a game is a simple heuristic that can be used
to describe its complexity and compare it to other games, and a game’s size can be
measured in several ways. The most commonly used measurement is to count the
number of game states in a game.

B.Tech ECE Page 1


B.Tech ECE Page 2
High card, also known as no pair or simply nothing, is a hand that does not fall
into any other category, such as K♥ J♥ 8♣ 7♦ 4♠ ("high card, king" or "king-jack-high" or
"king-high").Note that under ace-to-five low rules, straights, flushes and straight flushes
are not possible, so such hands are instead high card hands. It ranks below one pair.

Each high card hand is ranked first by the rank of its highest-ranking card, then by the
rank of its second highest-ranking card, then by the rank of its third highest-ranking
card, then by the rank of its fourth highest-ranking card, and finally by the rank of its
lowest-ranking card. For example, K♠ 6♣ 5♥ 3♦ 2♣ ranks higher than Q♠ J♦ 6♣ 5♥ 3♣,
which ranks higher than Q♠ 10♦ 8♣ 7♦ 4♠, which ranks higher than Q♥ 10♥ 7♣ 6♥ 4♠,
which ranks higher than Q♣ 10♣ 7♦ 5♣ 4♦, which ranks higher than Q♥ 10♦ 7♠ 5♠ 2♥.
High card hands that differ by suit alone, such as 10♣ 8♠ 7♠ 6♥ 4♦ and 10♦ 8♦ 7♠ 6♣ 4♣,
are of equal rank.

game using python

B.Tech ECE Page 3


Poker card game using python

CHAPTER-4

CONCLUSION

Poker is a family of card games that combines gambling, strategy, and skill. All
poker variants involve betting as an intrinsic part of play, and determine the winner
of each hand according to the combinations of players' cards, at least some of which
remain hidden until the end of the hand. Poker games vary in the number of cards
dealt, the number of shared or "community" cards, the number of cards that remain
hidden, and the betting procedures.

B.Tech ECE Page 4


Poker card game using python

CHAPTER-5

REFERENCES

S.NO NAME OF TEXTBOOK NAME OF AUTHOR

1. Poker for Duminies Richard D. Harroch, Lou Krieger

2. The theory of Poker Sklansky, David

B.Tech ECE Page 5

You might also like