Welcome to Mini Rummy! This is a simple console-based implementation of the classic card game Rummy. The game is designed for two players, and the objective is to form sets of cards to win the game.
- Computer obviously ;)
- Python
-
Clone the repository:
git clone https://github.com/lafilledepondy/rummy.git
-
Navigate to the project directory:
cd rummy
-
Run the game:
py main.py
- Each player is dealt a hand of 10 cards from a standard deck.
- Players take turns drawing cards, either from the deck or the pile.
- The goal is to form three sets of cards:
- Two sets with three cards each
- One set with four cards
- A set can be either a "book" (cards of the same rank but different suits) or a "run" (a sequence of cards in the same suit).
- After drawing a card, players must discard a card onto the pile.
- The game continues until one player successfully forms all the required sets.
- A player must have at least one valid "book" and one valid "run" to win.
- A "book" consists of cards of the same rank but different suits.
- A "run" is a sequence of cards in the same suit.
- During each turn, a player can choose a card from the pile or the deck to create sets.
- After selecting a card, the player must discard a card onto the pile.
- Move Cards (M): Rearrange cards in your hand.
- Pick from Pile (P): Pick a card from the pile.
- Take from Deck (T): Draw a card from the deck.
- Drop (D): Discard a card onto the pile.
- Sort (S): Sort your hand in descending.
- Close Game (C): Attempt to close the game (win).
- To exit the game, enter 'X' during your turn.
- Confirm your exit choice with 'Y' or 'N'.
- Gayathiri RAVENDIRANE aka lafilledepondy