nickrnet / rubble

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rubble

Rubble is a take on a card game we call Garbage. It is played with 2-4 players with one deck of standard playing cards of Aces thru 10s, Jacks, Queens, and Kings, without Joker cards.

Documentation

See doc/Development.md for how to contribute to this project.

Game Play

A player is designated the dealer and deals 10 cards face down to the other players. The players do not look at their cards but arrange them in a 5x5 grid. The rest of the deck is placed in the middle to draw from. The goal of the round is to flip the face down cards up in order 1-10.

The player to the right of the dealer then draws a card. If the card is an Ace thru 10, the appropriate spot of the value of the card, flipping the card that was face down. If the card the player is holding cannot be played, it is discarded.

If there are cards in the discard pile, the next player may draw the top card instead of drawing from the deck.

Kings are "wild cards" and can be placed in any slot, whether face up/down or a face card. Queens allow the player to steal another face up card from another player. Jacks are end-of-turn cards and must be discarded.

A player is the winner of the round when all of their face down cards are face up in order. Then another round starts with the winner receiving 9 cards.

If a player only has one face down card, the King is not allowed to be played, but simply becomes like a Jack card to that player.

Playing the Game

In this implementation, Rubble is played in a browser (Edge, Safari, Google Chrome). To draw a card from the deck, simply click the Deck. If there is a card in the Discard and you want to draw it, simply click the one that is shown.

Once you have a card, it shows up for all to see. To place it or discard it, simply click the card you are holding.

Limitations

  • Currently you play for all players, though the Auto Play button will play the whole round.
  • There is not a way at the moment to have NPC players.
  • The algorithm used for the King card isn't the smartest.
  • The game consists of only one round. When done simply reload the page to play another round, though the number of slots for each player won't change.
  • Queens are simply discarded, like Jacks.

About


Languages

Language:JavaScript 95.0%Language:HTML 3.2%Language:CSS 1.8%