Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
army from strings solution in Creative category for Army Units by flpo
class Army:
def __getattr__(s, i, t=type, d=dict, g=getattr):
return lambda n:t('',(),d(introduce=lambda:f'{g(s, i[6:])} {n}, {t(s).__name__} {i[6:]}'))
s = 'swordsman lancer archer'.split()
a = lambda n, ns: type(n, (Army,), dict(zip(s, ns.split())))
EuropeanArmy = a('European', 'Knight Raubritter Ranger')
AsianArmy = a('Asian', 'Samurai Ronin Shinobi')
Swordsman = Lancer = Archer = None
June 21, 2018