Skip to content

Instantly share code, notes, and snippets.

@minitech
Created February 20, 2017 07:37
Show Gist options
  • Save minitech/97723bb4ae8d19b3b6b320a4995afb91 to your computer and use it in GitHub Desktop.
Save minitech/97723bb4ae8d19b3b6b320a4995afb91 to your computer and use it in GitHub Desktop.
import itertools
data = ['str', 'int', 'dex', 'con', 'wis', 'cha']
covered = frozenset([
# paladin
('wis', 'cha'), ('cha', 'str'), ('str', 'cha'), ('str', 'int'),
# barbarian
('str', 'dex'), ('str', 'con'), ('con', 'str'),
# cleric
('str', 'wis'), ('con', 'wis'), ('wis', 'str'), ('wis', 'con'),
# wizard
('int', 'str'), ('int', 'con'), ('con', 'int'), ('wis', 'int'),
# rogue
('int', 'dex'), ('dex', 'int'), ('cha', 'wis'),
# druid
('int', 'wis'),
# sorcerer
('int', 'cha'), ('con', 'cha'), ('cha', 'int'),
# monk
('dex', 'str'),
# fighter
('dex', 'con'), ('con', 'dex'),
# ranger
('dex', 'wis'), ('wis', 'dex'),
# bard
('dex', 'cha'),
# warlock
('cha', 'dex'), ('cha', 'con'),
])
for p in itertools.permutations(data, 2):
if p not in covered:
print(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment