Git Product home page Git Product logo

cards's Introduction

Cards

Cards are probably the most commonly used game items for board games. Incidentally, the basic organisation of cards in many card games that use the Frencch style is similar, and forms a good example to illustrate many object oriented programming principles.

This repo attempts to model the organisation of cards using the following basic and widely used conventions in card games:

In a game of cards, each player plays using a hand of cards. Cards are usually delt from a deck. The deck must initially contains all the 52 cards, and shuffled before play. For French style cards, cards are identified using their rank and suit. For the ranks, there's the Ace, then 2 to 10, Jack, Queen and King. The suits are Clubs, Diamonds, Spades and Hearts.

Using this general description, I have modelled a class structure that employs various principles of object oriented programming. See image below: class uml diagram

Please check the source files for implementation details

Why am I doing this?

This labs are part of the Andela boot-camp set of programming assignments, which am currently participating in.

Feel free to comment on the code or ask any questions about the boot-camp.

cards's People

Contributors

michaelkamau avatar

Watchers

 avatar James Cloos 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.