MCPcopy Create free account
hub / github.com/geekcomputers/Python / _extract_rank

Method _extract_rank

BlackJack_game/blackjack_simulate.py:230–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228
229 def calculate_point(self):
230 def _extract_rank():
231 raw_ranks = [card.rank for card in self.hand]
232 cook_ranks = [10 if rank > 10 else rank for rank in raw_ranks]
233 return cook_ranks
234
235 def _sum_up(ranks):
236 rank_one = sum(ranks)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected