view pyikriam/example.py @ 160:7551342718b6

Refactory pyikriam with patterns. - Use dyna_prog, a dynamic programming decorator, to cache city objects. - fake_moz to emulate a mozilla browser.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 01 Nov 2008 21:29:51 +0800
parents 19d2a7b175b3
children 1507c2d16b35
line wrap: on
line source

from __init__ import Ikariam

i = Ikariam()
city = i.city(117261)
city.sync()
print 'gold is ' + city.gold