This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def max_break(reds_remaining, colour=0): | |
""" | |
:param reds_remaining: number of reds left on table | |
:param colour: (optional) point value of current colour | |
:return: return maximum available snooker break | |
""" | |
colours = sum(range(2, 8)) | |
if reds_remaining > 0: | |
reds_and_blacks = reds_remaining * 8 |