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

Method get_color

BlackJack_game/blackjack_simulate.py:610–618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608
609 def result_exhibit(self):
610 def get_color():
611 if "BUST" in content:
612 return COLOR.get("RED" if "Player" in content else "GREEN")
613 if self.winner == "Player":
614 return COLOR.get("GREEN")
615 elif self.winner == "Dealer":
616 return COLOR.get("RED")
617 else:
618 return COLOR.get("YELLOW")
619
620 end = COLOR.get("END")
621 content = str(self.res)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected