def setup(self): grid = t.Grid(10, 10) self.slow = t.Unit() self.slow.speed = 2 self.fast = t.Unit() self.fast.speed = 10 self.b = t.Battle(grid) self.b.units = [self.slow, self.fast]
def setup(self): g = t.Grid(10, 10) b = t.Battle(g) starts = [(0, 0), (9, 9)] for start in starts: new_unit = t.Unit() new_unit.join_battle(b, start[0], start[1]) self.v = t.Visualizer(b)
def setup(self): grid = t.Grid(10, 10) self.u = t.Unit() self.b = t.Battle(grid) self.u.join_battle(self.b, 1, 1) self.u.move_speed = 1 # To keep options list small
def setup(self): self.t = t.Team() for i in xrange(5): new_unit = t.Unit() self.t.all_units.append(new_unit)
def setup(self): self.u1 = t.Unit() self.u2 = t.Unit()
def setup(self): self.u = t.Unit()