view pyikriam/example.py @ 161:1507c2d16b35

Extract wood, marble, crystal, sulfure, and inhabitants information.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 01 Nov 2008 22:21:25 +0800
parents 7551342718b6
children e49137521123
line wrap: on
line source

from __init__ import Ikariam

i = Ikariam()
city = i.city(117261)
city.sync()
print 'gold is ' + city.gold
print 'inhabitants is ' + city.inhabitants
print 'wood is ' + city.wood
print 'wine is ' + city.wine
print 'marble is ' + city.marble
print 'crystal is ' + city.crystal
print 'sulfur is ' + city.sulfur