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

Method ifallout

recipes/Python/334728_Cricket_GUI/recipe-334728.py:39–45  ·  view source on GitHub ↗
(self,x,w)

Source from the content-addressed store, hash-verified

37
38
39 def ifallout(self,x,w):
40 #predicts score if they will not last numofovers overs
41 #x is the score per ball
42 #w is number of balls to get them out
43 b = x * w
44 b = int(b)
45 return b
46
47
48 def willsurvive(self,w,y,numofovers, wold, yold):

Callers 1

runfunsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected