print(c1.dealer)

print()
c1.shuffle()
print(c1.cards)
print()

print(len(c1))
print(c1)

print(c1.get_suits())

print(CardDeck.get_suits())

c1.bark()
print()
j = JokerDeck("Fred")

print(j)
print(len(j))
j.shuffle()
print(j.cards)

j.bark()

j.meow()

print(JokerDeck.mro())


示例#2
0
print(d1.dealer)

# print(d1.get_dealer())
# d1.set_dealer("Brenda")

d1.shuffle()
print(d1.cards, '\n')

for i in range(7):
    print(d1.draw())
print()

print(d1.get_ranks())

print(CardDeck.get_ranks())
print('-' * 60)

j1 = JokerDeck("Albert")
j1.shuffle()
print(j1.draw())
print(j1.cards)

j1.bark()

end_time = time.time()

print("elapsed time:", end_time - start_time)


示例#3
0
hand = []
for i in range(5):
    hand.append(C1.draw())
print("Hand:", hand)

print(C1.get_suits())
print(CardDeck.get_suits())

CardDeck.bark()
print('-' * 60)
J1 = JokerDeck('Jack')
print(J1)
print(J1.draw())
print(J1.cards)

J1.bark()
print(JokerDeck.mro())
print(J1)  # print(str(j1))
print(C1)
print(len(J1))  #  print(str(len(j1)))
print(len(C1))
c2 = CardDeck("Bonnie")

Z = C1 + c2

print(Z)
print(len(Z))
print(Z.draw())

X = c2 + C1
print(X, len(X))