Created
March 28, 2019 14:09
-
-
Save davegotz/41830162ef326ce3d48b0cd4cb1fb889 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Playing Card class, represents a single playing card. | |
| class PlayingCard: | |
| def __init__(self, value, suit): | |
| # Setup the instance variables. | |
| self.value = value | |
| self.suit = suit | |
| self.face_up = False | |
| def main(): | |
| test_card = PlayingCard(3, "Spades") | |
| another_card = PlayingCard("Ace", "Spades") | |
| print("Done!") | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment