Card
A playing card is a game object in a deck, characterized by attributes such as rank and suit.
Learn C++ by Example
A card is a playing-card entity with properties such as rank and suit that can participate in a card game.
- How it is used
- Models playing cards while teaching classes, scoped enums, arrays, comparison operators, and a small guessing game.
- How deep it goes
- Explains construction, validation, encapsulation, display, and defaulted comparisons, then defers joker representation to std::variant.
- Examples
- Uses a four-suit deck, formatted card output, adjacent-card comparisons, and a higher-or-lower console game.
- What you can do after
- Builds a validated Card class, formats instances, compares them, stores decks in arrays, and operates a higher-or-lower game.
Get Programming: Learn to code with Python
A playing card is a game object identified by a rank and a suit.
- How it is used
- Uses cards as game objects in a Python simulation of War, where players draw, compare, and transfer them.
- How deep it goes
- Defines cards as strings in lists, specifies comparison rules, and applies them through Player and CardDeck classes.
- Examples
- Uses notations such as 2H, 4D, 7S, and 9C within a 32-card War deck.
- What you can do after
- Build it from scratch as part of a playable two-player War simulation using Player and CardDeck classes.
Read how Get Programming: Learn to code with Python explains card →
Tiny CSS Projects
A card is a self-contained interface component that presents related content within a bounded visual area.
- How it is used
- Uses cards to separate related content and organize visually meaningful interface sections.
- How deep it goes
- Builds cards through nested HTML, layered CSS, browser-default diagnosis, and Flexbox details, stopping short of broader component architecture.
- Examples
- Demonstrates resort summary cards, checkout sections, and a virtual credit card with chip, number, and account details.
- What you can do after
- Apply it via HTML and CSS to build bounded content panels with readable layers, depth, rounded corners, and aligned internal elements.
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond
An individual playing card with suit and face attributes in a card deck.
- How it is used
- Deploys card objects as the core data model for a Blackjack deck, dealing flow, visibility state, and hand scoring.
- How deep it goes
- Explains card creation, shuffling, flipping, dealing, and ace-aware counting through concrete JavaScript implementations.
- Examples
- Uses a 52-card deck, face-value mappings, flip-state tracking, initial hands, and ace-sensitive hand counts.
- What you can do after
- Build card objects, generate and shuffle a deck, deal cards, track visibility, and calculate Blackjack hand values.
Related concepts
- deckpart of · A deck is an ordered collection of playing cards from which cards can be dealt, drawn, or shuffled during a card game.
- stream insertion operatorused by · The C++ stream insertion operator, operator<<, writes formatted values to output streams and can be overloaded for user-defined types.
- structkind of · A struct is a composite data type or structure that groups related fields or values into a single unit.
- border-radiusconfigured by · The CSS border-radius property specifies the radii of an element’s corners, producing rounded corners.
- comparisonused by · A comparison is a language operation that tests a relationship between values or expressions, such as equality or ordering, and produces a result.
- handpart of · A hand is a collection of playing cards held or considered together by a player during a round of a card game.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



