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

Method record

BlackJack_game/blackjack_simulate.py:345–357  ·  view source on GitHub ↗
(self, winner, chips, player_point, dealer_point)

Source from the content-addressed store, hash-verified

343 self.dealer_point = dealer_point
344
345 def record(self, winner, chips, player_point, dealer_point):
346 self.update(winner, chips, player_point, dealer_point)
347 Row = namedtuple(
348 "Row", ["rounds", "player_point", "dealer_point", "winner", "remain_chips"]
349 )
350 row = Row(
351 self.rounds,
352 self.player_point,
353 self.dealer_point,
354 self.winner,
355 self.remain_chips,
356 )
357 self.data.append(row)
358
359 def draw_diagram(self):
360 content = "Record display"

Callers 5

hearFunction · 0.80
long_hearFunction · 0.80
short_hearFunction · 0.80
sttFunction · 0.80
playMethod · 0.80

Calls 2

updateMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected