updated from Atlas

This commit is contained in:
Luciano Ramalho
2021-08-07 00:44:01 -03:00
parent cbd13885fc
commit 01e717b60a
96 changed files with 580 additions and 1021 deletions

View File

@@ -1,8 +1,8 @@
import collections
from collections import namedtuple, abc
Card = collections.namedtuple('Card', ['rank', 'suit'])
Card = namedtuple('Card', ['rank', 'suit'])
class FrenchDeck2(collections.MutableSequence):
class FrenchDeck2(abc.MutableSequence):
ranks = [str(n) for n in range(2, 11)] + list('JQKA')
suits = 'spades diamonds clubs hearts'.split()