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

Method getresults

recipes/Python/334728_Cricket_GUI/recipe-334728.py:346–356  ·  view source on GitHub ↗
(self,wickets,overs,runs,numofovers, win, used_before, battingfirst)

Source from the content-addressed store, hash-verified

344
345
346 def getresults(self,wickets,overs,runs,numofovers, win, used_before, battingfirst):
347 #code to get the actual info if everything goes well
348 Cricketobj = Cricket(wickets,overs,runs,numofovers, win)
349 # if used_before == 'N':
350 win = 10
351 #originalscore = 0
352 #wold = 0
353 #yold = 0
354 #orignovoers = 0
355 results = Cricketobj.usedbefore(wickets, overs, runs,numofovers, win,used_before, battingfirst)
356 return results
357#main
358import cPickle, shelve
359import math

Callers 1

cricket_getinfoMethod · 0.95

Calls 2

usedbeforeMethod · 0.95
CricketClass · 0.85

Tested by

no test coverage detected