Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
zzdgnczfgdmksjdgfjs solution in Creative category for Building Base by samulih
class Building:
__repr__ = lambda s: '%s%s' % (s.__class__.__name__, s.d)
def __init__(s, *args, methods=('area', 'volume', 'corners')):
s.d, ns, we, r = (args + (10,))[:5], ('sou', 'nor'), ('we', 'ea'), (0, 1)
s.__dict__.update({k: lambda n=n: ({'%sth-%sst' % (ns[i], we[j]):
[s.d[0]+s.d[3]*i, s.d[1]+s.d[2]*j] for i in r for j in r}) if n>1 else
s.d[2]*s.d[3]*s.d[4]**(n&1) for n, k in enumerate(methods)})
Nov. 8, 2014
Comments: