Giter Site home page Giter Site logo

rummy's Introduction

Rummy

Rules of the game

RANK OF CARDS K (high), Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2, A. Face cards count 10 each, aces 1 each, and every other card its pip value.

OBJECT OF THE GAME Each player tries to form matched sets consisting of groups of three or four of a kind, or sequences of three or more cards of the same suit. Shedding all of their cards.

THE PLAY Players either draw the top card of the stock deck or take the top card of the discard pile and add it to their hand. The player may also lay down on the table, any meld (matched set). If the player does not wish to lay down a meld, they discard one card onto the discard pile.

LAYING OFF A player may add one or more cards from their hand to any matched set already shown on the table.

GOING OUT When a player gets rid of all of their cards, they win the round. Hand points are totaled based on the cards remaining in a player's hand. The hand-total(if any) of the player that ended the round is subtracted from the opponent's hand-total. The round ending player is then awarded the difference. When a player reaches 100 points they win the game.

KNOCKING If a player's deadwood cards(cards that cannot be melded) total value is 10 or less they may choose to end the round by knocking. Knocking will end the round, allowing the opponents to layoff any possible meld cards before hands are totaled.

GAMEPLAY: Each player is dealt 10 cards, they must draw from the deck or the discard pile. The player can then form melds based on the cards in their hand or based on current melds if any in the respected play area. A player uses the numeric index below the hand output to select cards that can be played alone or in sets/runs. Play continues until a player plays all of their cards carefully making sure they can always discard one card, signaling the end of their turn. Points are awarded according to the rummy rules above.

Run Locally

Clone the project

  git clone https://github.com/Tfauves/Rummy.git

Navigate to Main class

Run the private static void main(String[] args) method

rummy's People

Contributors

tfauves avatar

Watchers

 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.