22 lines
439 B
Python
22 lines
439 B
Python
import time_mine as tm
|
|
import chained_mine as cm
|
|
import standard_mine as sm
|
|
|
|
mine1 = tm.TimeMine((1, 2), "time", 3)
|
|
mine2 = cm.ChainedMine((3, 4))
|
|
mine3 = cm.ChainedMine((0, 6), "chained", mine2)
|
|
mine4 = sm.StandardMine((1, 2), "standard")
|
|
|
|
mines = [mine1, mine2, mine3, mine4]
|
|
|
|
for mine in mines:
|
|
print(mine.position)
|
|
print(mine.active)
|
|
|
|
print(mine2.predecessor)
|
|
print(mine3.predecessor)
|
|
|
|
mine4.disarm()
|
|
|
|
mine5 = cm.ChainedMine()
|