Skip to content

Jerry-gifspec/card-game-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Card Deck Simulation in Python

This Python script simulates a deck of 52 playing cards. It includes two main classes: Card and Deck. The Card class represents an individual card, while the Deck class represents a full deck of shuffled cards. The deck allows cards to be dealt randomly.

Features

  • Card Class: Represents a playing card with a rank (e.g., Ace, 2, King) and suit (e.g., Hearts, Spades).
  • Deck Class: Represents a standard 52-card deck, shuffling the cards upon initialization.
  • Dealing Cards: Cards can be dealt one by one from the deck, with each card removed from the deck upon being dealt.

Requirements

  • Python 3.x

Usage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages