Git Product home page Git Product logo

poker's Introduction

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.

poker's People

Contributors

ppatchara avatar piyachatmee avatar

Stargazers

David Martínez avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.