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

Method __init__

recipes/Python/580811_Uno_TextBased/recipe-580811.py:575–582  ·  view source on GitHub ↗

Initializes Uno Card w/ Color and Value.

(self, color, value)

Source from the content-addressed store, hash-verified

573
574
575 def __init__(self, color, value):
576 '''Initializes Uno Card w/ Color and Value.'''
577 self.wild = False #Is wild card?
578 self.zero = False
579 self.cardID = '{}{}'.format(self.idMap[color],self.idMap[value])
580 self.setColor(color)
581 self.setValue(value)
582 self.setPoints(value)
583
584
585 #############################################

Callers

nothing calls this directly

Calls 4

setColorMethod · 0.95
setValueMethod · 0.95
setPointsMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected