Skip to content

Instantly share code, notes, and snippets.

View pursuingpareto's full-sized avatar

Andy Brown pursuingpareto

  • Looker
  • San Francisco, CA
View GitHub Profile
def score(bracket, results, filt,
teams_remaining, blacklist, round_num=0):
"""
Recursively calculates the score of a prediction
bracket against a results bracket.
- bracket
A bitstring representing a prediction bracket. For
a 64 game tournament this would be 63 bits.