mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
module 7 ex 0 to 2
This commit is contained in:
@@ -21,10 +21,12 @@ class Deck:
|
||||
shuffle(self.cards)
|
||||
|
||||
def draw_card(self) -> Card:
|
||||
pass
|
||||
self.shuffle()
|
||||
return self.cards.pop()
|
||||
|
||||
def get_deck_stats(self) -> dict:
|
||||
from . import ArtifactCard, SpellCard
|
||||
from .ArtifactCard import ArtifactCard
|
||||
from .SpellCard import SpellCard
|
||||
|
||||
creatures = 0
|
||||
spells = 0
|
||||
|
||||
Reference in New Issue
Block a user