Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block qwertysmack

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
qwertysmack /
Created Feb 8, 2016
Calculate maximum available snooker break
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
You can’t perform that action at this time.