Giter VIP home page Giter VIP logo

31-card-game's Introduction

31-Card-Game

This is a card game played by several players and the goal is to not get the lowest card hand of the round

If you want to get a better experiance with game run RunMeFirst.reg file before running the game from GameMain, And also make sure you run it in python console or command prompt or terminal(in linux/mac)

Deffinitions

player         : A Player is being called by his name
Dealer         : An NPC [optional]
Card Pack      : Normal Card pack with 4 suits and 52 cards
Table Card     : There is a one card that is always displaied on the table which is not belong to any player and any player can
exchange one of his card with this when they get their chance
Deck           : Deck of cards which are left after disributing cards among players are placed on the table but turn down this is
that card set
Deck Card      : A player can look the top card on the deck if he/she is not satisfied with the table card
Knock          : If a player is satisfied with his hand he can knock on the table and after a player has knocked every other players
get a one another chance to play in that round
Pass           : If a player is not satisfied with both table and deck cards he can pass his hand to the next player

Basic Rules Of The Game

you can watch how to play the game in this link on youtube

The Basic game is played by four players but in this game you can play this game with any number of players How ever the recommended number is four You can even play this game with the computer but it will be too easy if you are a pro ; )

This game is played with a single card deck and what our objective is to collect cards in a single suit(Clubs, Diamonds, Hearts, Spades) which give the total value of 31,

  • And here are the values of the cards

    • A : Ace - 11
    • K : King - 10
    • Q : Queen - 10
    • J : Jack - 10
    • Other : Value of the card
  • In this game we represent,

    • H : Heart
    • S : Spade
    • C : Club
    • D : Diamond

each player can keep 3 cards in there hands and they have three lives at the beginning all players them self three cards and the what left in the deck is kept on the table and the top card is shown When each player playing their hand they they can either take the card shown on the table or they can take the top card from the deck and replace a card with you, How ever you should keep only 3 cards.

If a player is satisfied with the value of card he has he can 'Knock', and when he does every other player get only one chance to play in that round

  1. The person who has the lowest value of cards in the same suit will lose a life
  2. If the person who had knock has the lowest card value he will lose two lives
  3. If two people have same lowest value then both of them will lose a life

How ever if a player got 31 in his hand in same suit, the round will be over instantly and player/players who got lowest values in there hand will loose that round

every player can pass their hand without taking the card on the table or looking at the top card on the deck. But if a player see the top card on the deck he has to replace it or place it on the top of the discard cards on the table.

The winner is obvious, the player who stand in the game till the end will be the winner

So This is hove The Game Goes, The Program Will Lead You through out the game So Enjoy ;-)

31-card-game's People

Contributors

supun64 avatar

Stargazers

 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.