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

Method eventDealCards

recipes/Python/580811_Uno_TextBased/recipe-580811.py:918–928  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

916 return {'valid':False,'entry':playerInput}
917
918 def eventDealCards(self):
919 if self.displayEffects and not self.simulation:
920 self.elements['Console'] = 'Dealing Cards...'
921 for i in ('play1','play2','play3','play4'):
922 if i in self.players:
923 for j in range(7):
924 j #unused
925 self.dealCard(i)
926 if self.displayEffects and not self.simulation:
927 print(self.drawScreen(True))
928 time.sleep(.1)
929
930 def eventReverse(self):
931 if self.displayEffects and not self.simulation:

Callers 1

beginMethod · 0.95

Calls 5

dealCardMethod · 0.95
drawScreenMethod · 0.95
rangeFunction · 0.85
printFunction · 0.85
sleepMethod · 0.45

Tested by

no test coverage detected