MCPcopy Index your code
hub / github.com/geekcomputers/Python / is_point

Method is_point

BlackJack_game/blackjack_simulate.py:248–253  ·  view source on GitHub ↗
(self, opt, point)

Source from the content-addressed store, hash-verified

246 self.point = _sum_up(points)
247
248 def is_point(self, opt, point):
249 self.calculate_point()
250 compare_fmt = "{user_point} {opt} {point}".format(
251 user_point=self.point, opt=opt, point=point
252 )
253 return eval(compare_fmt)
254
255 def speak(self, content="", end_char="\n"):
256 print("")

Callers 4

strategy_triggerMethod · 0.80
menuMethod · 0.80
card_manageMethod · 0.80
get_winnerMethod · 0.80

Calls 1

calculate_pointMethod · 0.95

Tested by

no test coverage detected