fixed typo
This commit is contained in:
@@ -15,7 +15,7 @@ class Deck:
|
|||||||
|
|
||||||
def shuffle(self):
|
def shuffle(self):
|
||||||
for i in range(len(self._cards)):
|
for i in range(len(self._cards)):
|
||||||
j = random.randomrange(i, len(self._cards))
|
j = random.randrange(i, len(self._cards))
|
||||||
self._cards[i], self._cards[j] = self._cards[j], self._cards[i]
|
self._cards[i], self._cards[j] = self._cards[j], self._cards[i]
|
||||||
self._next_card = 0
|
self._next_card = 0
|
||||||
|
|
||||||
|
|||||||
BIN
Project 1/__pycache__/Card.cpython-314.pyc
Normal file
BIN
Project 1/__pycache__/Card.cpython-314.pyc
Normal file
Binary file not shown.
BIN
Project 1/__pycache__/Deck.cpython-314.pyc
Normal file
BIN
Project 1/__pycache__/Deck.cpython-314.pyc
Normal file
Binary file not shown.
BIN
Project 1/__pycache__/Solitaire.cpython-314.pyc
Normal file
BIN
Project 1/__pycache__/Solitaire.cpython-314.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user