Skip to content

Instantly share code, notes, and snippets.

@earthling-shruti
Created January 30, 2013 01:10
Show Gist options
  • Save earthling-shruti/4669704 to your computer and use it in GitHub Desktop.
Save earthling-shruti/4669704 to your computer and use it in GitHub Desktop.
def tourney(N, C):
game_set = []
for i in range(1, N): #add error check for 1 player
for j in range(i+1, N+1):
game_set.append(str(i) + " vs " + str(j))
for game in game_set:
print game
tourney(6,4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment