fixes import and added docstring
This commit is contained in:
@@ -17,6 +17,7 @@ class Card:
|
||||
self.value = int(rank)
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""Returns the rank and suit of the card."""
|
||||
return self.rank + " of " + self.suit
|
||||
|
||||
def get_value(self) -> int:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import random
|
||||
from card import Card
|
||||
from pyjack.card import Card
|
||||
|
||||
SUITS = ["hearts", "diamonds", "clubs", "spades"]
|
||||
RANKS = list(range(2, 11)) + ["J", "Q", "K", "A"]
|
||||
|
||||
Reference in New Issue
Block a user