MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / _is_flush

Method _is_flush

project_euler/problem_054/sol1.py:253–254  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

251 return 14 + self._is_same_kind()
252
253 def _is_flush(self) -> bool:
254 return len(self._card_suit) == 1
255
256 def _is_five_high_straight(self) -> bool:
257 # If a card is a five high straight (low ace) change the location of

Callers 2

_get_hand_typeMethod · 0.95
test_hand_is_flushFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_hand_is_flushFunction · 0.64