Skip to content

Instantly share code, notes, and snippets.

@robrocker7
Created August 11, 2011 14:53
Show Gist options
  • Save robrocker7/1139866 to your computer and use it in GitHub Desktop.
Save robrocker7/1139866 to your computer and use it in GitHub Desktop.
if user_length >= 4:
roles['RANDOM_ONE'] = ['VILLAGER',
'WITCHDOCTOR',
'MARTYR',
'CURSED',
'PUTRID',
'VILLAGER']
if user_length > 4: # 5 players
required_roles = ['WEREWOLF',
'PSYCHIC',
'PRIEST',
'BLESSED']
add_random('ONE')
if user_length > 5: # 6 players
required_roles.append('HALFBLOOD')
if user_length > 6: # 7 players
add_random('ONE')
if user_length > 7: # 8 players
required_roles.append('OCCULTIST')
if user_length > 8: # 9 players
required_roles.append('WEREWOLF')
if user_length > 9: # 10 players
add_random('ONE')
if user_length >= 11:
roles['RANDOM_TWO'] = ['KINDRED',
'DOPPELGANGER',
'HAUNTED',
'VILLAGER',
'VILLAGER',
'VILLAGER']
if user_length > 10: # 11 players
remove_random('ONE')
add_random('TWO')
add_random('TWO')
if user_length > 11: # 12 players
add_random('ONE')
if user_length > 12: # 13 players
add_random('TWO')
if user_length > 13: # 14 players
add_random('ONE')
if user_length > 14: # 15 players
required_roles.append('WEREWOLF')
if user_length > 15: # 16 players
add_random('TWO')
if user_length > 16: # 17 players
add_random('ONE')
if user_length >= 18:
roles['RANDOM_THREE'] = ['VAMPIRE',
'VILLAGER',
'VILLAGER',
'VILLAGER',
'HIGHLANDER']
if user_length > 17: # 18 players
remove_random('ONE')
add_random('THREE')
add_random('THREE')
if user_length > 18: # 19 players
required_roles.append('WEREWOLF')
if user_length > 19: # 20 players
add_random('THREE')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment