Deck of Cards Lab

docx

School

Strayer University *

*We aren’t endorsed by this school

Course

261

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

3

Uploaded by mjeleah26

Report
Jeleah Mclean CIS261 Deck of Cards Lab Project Build Debug Test Analyze Tools Extensions Window Help 0 Search ~ Deck of Cards Remaning cards i Good luck The thread 'MainThread' ( Th'; program ' .exe' Jeleah Mclean [11272023035355] 8.2.2 Deck of Cards m [OAETW-07pit-07tys] "oroion 2 EE Q Search i m QO A @ &5 @ 5 A= ® 112602023 [CT1 SR o711 SR - TVT1 1< B 07~ TV N (= UV, F- 1% (1o R S - T T T T L TV o ) 0 Search ~ Deck of Cards LELET T ER I < -1 Good luck The thread 'MainThread' Th'; program ' .exe' Jeleah Mclean [11272023035413] 8.2.2 Deck of Cards . 7] Python analysis done m [OAETW-07pit-07tys] "oroion - == Q Search all/ = D - c [ | @ A L % 1162003
0Q Fie Edt View Gt Poject Buld Debug Test Anshze Tools Ectensions Window £ Search ~ Deckof Cards Signin 2 The thread “MainThread The progran *python.exe! Jeleah Mclean [11272023035428] 8.2.2 Deck of Cards 1 Ad [OAETH-07p3t-07Tys] froion - Q search il m D W e e o T Gt Project Buld Debug Test Analyze Tools Edtensions Window Help O Search~ | DeckofCards print("Dealt cards: card in dealt_¢ i print(card) The thread “MainThread The progran *python.exe! Jeleah Mclean [11272023035440] 8.2.2 Deck of Cards 1 Ad [OAETH-07p3t-07Tys] froion - Q search il m D W e e o T
) Deckeof-Cards/Deck of Carcie X+ C @ github.com/JeleahM26/Deck-of-Cards/blob/master/Deck_of_Cards.py Qe ¥ O0a: [0 Files Deck-of-Cards / Deck_of_Cards.py (5 ¥ = - JEle username Add project fles. 698125 - now O History Q Gotofile + (Code | Blame 62 1tnes (46 100) - 1.38 k6 @3 Code 55% faster with GitHub Copilot @ 2 - @ O gitattributes O gitignore 1 #elean 2 sass [ Deck of Cards.pyproj 3 # Deck of cards [ Deck of Cards.sin ; [ Deck of Cards.py 6 import random 7 5 class Cara: 9 def _init__(self,rank,suit) 10 self.rank = rank n self.sult = suit 12 13 v class Deck: 10 def _init_(self) 15 self.ranks = [Ace’, 30, e, U5, U6, 07, R, 90,0100, ‘ack’, “Queen’, 'King'] 1 self.suits = ['Hearts', ‘Diamonds’, 'Cluss’, 'Spades’] Y self.reset() 1 1 def reset(se1f): 2 self.deck = [Card(rank, suit) for suit in self.suits for rank in self.ranks] Jeleah Mclean [112720230355561 2 2 def shuFfle(sel? Documentation - Share feedbsck - SN = 11/26/2023 Q search il O We s
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help