Skip to content

riship21/Python-Based-IndianPoker-TeenPatti-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Of course! Here's a simplified version of the README in plain text format:


Python-Based Indian Poker (Teen Patti) Game

Welcome to the Python-Based Indian Poker (Teen Patti) Game repository! This project is a simple Python implementation of the popular card game Teen Patti. It compares two hands and declares the winner based on the Teen Patti hand ranks. Please note that this version focuses solely on hand comparison and doesn't include betting mechanics.

Game Rules

Indian Poker, also known as Teen Patti, is a card game played with a standard deck of 52 cards. The game involves betting and bluffing and is typically played with 3 to 6 players. Each player is dealt three cards, and the objective is to have the best possible hand based on the following ranks, from highest to lowest:

  1. Trail/Three of a Kind: Three cards of the same rank.
  2. Pure Sequence: Three consecutive cards of the same suit.
  3. Sequence/Normal Run: Three consecutive cards of different suits.
  4. Color/Flush: Three cards of the same suit.
  5. Pair: Two cards of the same rank, and the third card is unrelated.
  6. High Card: None of the above combinations.

This project's goal is to compare two hands and determine the winner based on these hand ranks.

How to Play

  1. Clone this repository to your local machine.

  2. Navigate to the project directory.

  3. Run the Python script using a compatible interpreter. For example:

    python teen_patti_game.py
    
  4. The script will compare the hands and announce the winner.

Contribution

If you're interested in contributing, feel free to fork this repository and create a pull request. While this project is a simple demonstration of Teen Patti mechanics, you're welcome to suggest improvements, add features, or even work on betting mechanics.

License

This project is licensed under the MIT License.

Enjoy the world of Teen Patti and happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages