Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Console Rummy game

Project description

License: MIT Build Status codecov

Command Line Rummy in Python 3

This is a one to four player command line version of the card game Rummy.

Play against friends or AI

Installation

pip install rummy

Demo

Python Rummy Demo

Usage

Run rummy in terminal

Select number of players then the number of AI opponents

Rules

Players must make melds of three or more cards eg A♠ 2♠ 3♠ or 4♠ 4♥ 4♣

Unmelded cards score points as follows: A = 1, J = 11, Q = 12, K = 13, number cards = face value

Players may knock once their hand is worth less than 10 points

Each other player then has one last turn before the round ends

At the end of each round players add their scores to their game total

The game ends once a player reaches 100 or more

The winner is the player with the lowest score

This project was created for EDx CS50 Final Project 2016

Final CS50 project video:

Python 3 Rummy AI battle

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rummy, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size rummy-1.2.1-py2.py3-none-any.whl (25.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size rummy-1.2.1.tar.gz (12.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page