Skip to content

n3n/poker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Poker Game Program

This README file contains information about the poker game.

Game Mode

  • SinglePlayer : You VS Bot game; shuffling five cards to each hand

General Rules in this game

A standard international 52-card pack is used, and in most forms of poker there are no jokers. The rank of the cards, from high to low, is A, K, Q, J, T, 9, 8, 7, 6, 5, 4, 3, 2. In certain circumstances the ace can be used as a low card, below the 2.

There are four suits,(from high to low is S=spade,H=heart, D=diamond and C=club); normally no suit is higher than another, whenever a hand has the same hand ranking the suit is used to determine. All poker hands contain five cards, the highest hand wins.

How the hands are ranked

Hands are ranked as follows(from high to low):

  • Straight Flush
  • Four of a kind
  • Full House
  • Flush
  • Straight
  • Three of a kind
  • Two Pair
  • One Pair
  • High Card

Note: When hands tie on the rank of a pair, three of a kind, etc, the cards outside break ties following the High Card rules.

Note: In the event of a tie;You and bot also have the same hand rank - You draw.

Straight Flush

Five cards in sequence, all of the same suit.Aces can be used as a low card, below the 2.

Four of a kind

Four cards of the same rank, and one side card or 'kicker'.

Full House

Three cards of the same rank, and two cards of a different matching rank.

Flush

Five cards of the same suit, but not in sequence

Straight

Five cards in sequence not the same suit.The ace may also be played as a low card (having a value of "1").

Three of a kind

Three cards of the same rank and two unrelated side cards.

If two hands contain three of a kind of the same value, the kickers are compared to break the tie.

Two Pair

2 pair of cards of a matching rank, another two cards of a different matching rank, and one side card.

Pair

Two cards of a matching rank, and three unrelated side cards.

High Card

Any hand that does not qualify under a category listed above.

Releases

No releases published

Packages

No packages published

Languages