MCPcopy Create free account
hub / github.com/ActiveState/code / addCard

Method addCard

recipes/Python/580811_Uno_TextBased/recipe-580811.py:31–36  ·  view source on GitHub ↗
(self, card)

Source from the content-addressed store, hash-verified

29 self.forceDraw = 0
30
31 def addCard(self, card):
32 self.drew = True
33 if self.forceDraw > 0:
34 self.forceDraw -= 1
35 self.drew = False
36 self.hand.addCard(card)
37
38 def beginTurn(self):
39 self.drew = False

Callers

nothing calls this directly

Calls 1

addCardMethod · 0.45

Tested by

no test coverage detected