Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PokeType(object):
- def __init__(self):
- self.name = ''
- class TypeAdv(object):
- def __init__(self, typeArr):
- self.values = {}
- for t in typeArr:
- self.values[t.name] = {}
- for u in typeArr:
- self.values[t.name][u.name] = 1
- OR
- def SetupTypeMatrix(typeArr):
- typeMat = {}
- for t in typeArr:
- typeMat[t] = {}
- for u in typeArr:
- typeMat[t][u] = 1
- return typeMat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement