Ejemplo n.º 1
0
#create chief warden
w = Warden("Leo", "Glynn", 6546876, 100)

#create prison
oz = Prison("Oz", w)

#create wardens
ward01 = Warden("Tim", "McManus", 323243, 20)
ward02 = Warden("Sean", "Murphy", 456788, 40)

#create prison blocks
pbA = PrisonBlock("Emerald City", 3, ward01)
pbB = PrisonBlock("Block B", 5, ward02)

#add blocks to prison
oz.addBlock(pbA)
oz.addBlock(pbB)

print("\n")

#print block strings
print(oz.getBlocksString())

print("\n")

#get inmates
inmateLst = createInmates()

#revers inmate list (for pop order)
inmateLst.reverse()