Creates a full deck of cards with a Card class, Deck class, and Player class. Currently displayed using the browser's console. Cards have a suit, string value, and numerical value. Cards also have a "show" method (which logs the card's information to the console). The Deck has "shuffle", "reset" and "deal" methods. The Player has a hand that they built using the deck.deal method. Player can also discard a Card.
-
Notifications
You must be signed in to change notification settings - Fork 0
Creates a full deck of cards with a Card class, Deck class, and Player class. Currently displayed using the browser's console. Cards have a suit, string value, and numerical value. Cards also have a "show" method (which logs the card's information to the console). The Deck has "shuffle", "reset" and "deal" methods. The Player has a hand that the…
andynhn/javascript-objects-card-deck
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Creates a full deck of cards with a Card class, Deck class, and Player class. Currently displayed using the browser's console. Cards have a suit, string value, and numerical value. Cards also have a "show" method (which logs the card's information to the console). The Deck has "shuffle", "reset" and "deal" methods. The Player has a hand that the…
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published