def __init__(self, x, y):
     self._new_x = x
     self._new_y = y
     new_x = 2 * Black_Hole.radius_constant
     new_y = 2 * Black_Hole.radius_constant
     # Simulton.__init__(self,x,y, new_x, new_y)
     Simulton.__init__(self, x, y, new_x, new_y)
Exemplo n.º 2
0
 def __init__(self, x, y, width, height, color):
     
     Simulton.__init__(self, x, y, width, height)
     
     self._x = x
     self._y = y
     self._width = width * 2
     self._height = height * 2
     self._color = color
Exemplo n.º 3
0
 def __init__(self, x, y, angle, speed):
     Simulton.__init__(self, x, y, Mobile_simulton.radius, Mobile_simulton.
                       radius)  #####how large are these robots, need to dis
     self._angle = angle
     self._speed = speed
     self._back_counter_left = 0
     self._back_counter_right = 0
     self._back_counter_top = 0
     self._back_counter_bottom = 0
Exemplo n.º 4
0
 def __init__(self, x, y, host=None, inher=0):
     self.host = host
     self.counter = 0
     self.reproduce_counter = 0
     self.reproduced = True
     self.lifespan = random.randrange(100, 600)
     self.genes = inher if inher else self.generate_binary_num(4)
     self.effect_on_init()
     temp = self.count_1_bits(self.genes)
     if temp:
         self.color = '#' + '{:0<6}'.format(
             hex(
                 sum(
                     int(
                         Special.color[Special.map[((self.genes >> i) % 2) *
                                                   (i + 1)]], 16) // temp
                     for i in range(Special.gene_number)))[2:])
     else:
         self.color = 'white'
     Simulton.__init__(self, x, y, Special.radius * 2, Special.radius * 2)
Exemplo n.º 5
0
 def __init__(self, x, y, width=0, height=0):
     Simulton.__init__(self, x, y, width, height)
     self.radius = 10
     self.set_dimension(self.radius * 2, self.radius * 2)
Exemplo n.º 6
0
 def __init__(self, x, y):
     self._radius = 10
     Simulton.__init__(self, x, y, self._radius * 2, self._radius * 2)
     self._width, self._height = self.get_dimension()
Exemplo n.º 7
0
 def __init__(self, x, y):
     self.radius = 10
     self.color = 'black'
     Simulton.__init__(self, x, y, self.radius * 2, self.radius * 2)
Exemplo n.º 8
0
 def __init__(self, x, y):
     self._radius = 10
     Simulton.__init__(self,x, y, 2 * self._radius,\
                   2 * self._radius)
Exemplo n.º 9
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, Black_Hole.radius * 2, Black_Hole.radius*2)
Exemplo n.º 10
0
 def __init__(self, x, y, width, height):
     self.radius = 10
     Simulton.__init__(self, x, y, width, height)
Exemplo n.º 11
0
 def __init__(self,x,y):
     Simulton.__init__(self,x,y, 2*Black_Hole.radius, 2*Black_Hole.radius)
     self._color = Black_Hole.color
Exemplo n.º 12
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, 20, 1)
     self.color = 'black'
Exemplo n.º 13
0
 def __init__(self, x,y):
     #what about color
     Simulton.__init__(self,x,y,2*Black_Hole.radius,2*Black_Hole.radius)
     self._eaten = set()
Exemplo n.º 14
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, Black_Hole.RADIUS * 2,
                       Black_Hole.RADIUS * 2)
     self.eaten = set()
     self.counter = 0
     self.radius = Black_Hole.RADIUS
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, 20, 20)
     self._color = "#000000"
Exemplo n.º 16
0
 def __init__(self, x, y):
     self._truth = 0
     Simulton.__init__(self, x, y, 20, 20)
Exemplo n.º 17
0
 def __init__(self,x,y,width,height,angle,speed):
     Simulton.__init__(self,x,y,width,height)
     self._angle = angle
     self._speed = speed
Exemplo n.º 18
0
 def __init__(self, x, y):   
     Simulton.__init__(self, x, y, 2*Black_Hole.radius, 2*Black_Hole.radius)
Exemplo n.º 19
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, 20, 20)
     self._color = 'black'
     self.counter = 30
Exemplo n.º 20
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, 10, 10)
Exemplo n.º 21
0
 def __init__(self,x,y):
     Simulton.__init__(self, x, y, width=self.radius*2,height=self.radius*2)
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, self.radius * 2, self.radius * 2)
Exemplo n.º 23
0
 def __init__(self, x, y):
     black_hole_radius = 2 * Black_Hole.radius
     Simulton.__init__(self, x, y, black_hole_radius, black_hole_radius)
 def __init__(self, x, y):
     self.eaten = set()
     Simulton.__init__(self, x, y, 20, 20)
Exemplo n.º 25
0
 def __init__(self, x, y, width=20, height=20):
     Simulton.__init__(self, x, y, width, height)
Exemplo n.º 26
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, self.radius * 2, self.radius * 2)
     self._color = 'black'
 def __init__(self,x,y):
     self._image = PhotoImage(file='Black_Hole.gif')
     Simulton.__init__(self,x,y,self._image.width(),self._image.height())
     self.radius = (self._image.height()/2)+((self._image.width()**2)/(8 * self._image.height()))
Exemplo n.º 28
0
 def __init__(self, x, y):
     Simulton.__init__(self,x,y,self.radius*2, self.radius*2) 
Exemplo n.º 29
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, 20, 20)
Exemplo n.º 30
0
 def __init__(self, x, y):
     Simulton.set_dimension(self, 20, 20)
     w, h = Simulton.get_dimension(self)
     Simulton.__init__(self, x, y, w, h)
     self.eaten = 0
     self.eatenSet = set()
Exemplo n.º 31
0
 def __init__(self, x, y, width = 20, height = 20):
     Simulton.__init__(self, x, y, width, height)
     self._color = "black"
Exemplo n.º 32
0
 def __init__(self,x,y):   
     Simulton.__init__(self,x,y,2*Black_Hole.radius,2*Black_Hole.radius)
 def __init__(self,x,y):
     self._image = PhotoImage(Image.open('bigbang.gif').convert('RGBA').resize((20, 20), Image.ANTIALIAS))
     Simulton.__init__(self,x,y,self._image.width(),self._image.height())
     self._center = (int(x),int(y))
     self._explosion = 500
Exemplo n.º 34
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, Static_simulton.radius * 2,
                       Static_simulton.radius * 2)
     self.find = False
Exemplo n.º 35
0
 def __init__(self, x, y):
     self.radius = 30
     self._x = x
     self._y = y
     Simulton.__init__(self, x, y, self._width, self._height)
     self._color = 'black'
Exemplo n.º 36
0
 def __init__(self, x, y):
     Simulton.__init__(self,
                       x,
                       y,
                       width=Black_Hole.radius,
                       height=Black_Hole.radius)
Exemplo n.º 37
0
 def __init__(self, x, y, width, height, angle, speed):
     Simulton.__init__(self, x, y, width, height)
     self._angle = angle
     self._speed = speed
Exemplo n.º 38
0
 def __init__(self, x, y, r, c):
     self.radius = r
     self.color = c
     Simulton.__init__(self, x, y, 2*self.radius, 2*self.radius)
Exemplo n.º 39
0
 def __init__(self, x, y):
     Simulton.__init__(self, x, y, Black_Hole.radiusc * 2,
                       Black_Hole.radiusc * 2)
Exemplo n.º 40
0
 def __init__(self,x,y):
     Simulton.__init__(self,x,y,20,20)
     self._color = "BLACK"