Commits

Dominic Kexel committed ff338bd Draft

cleanup

  • Participants
  • Parent commits 360c9c8

Comments (0)

Files changed (1)

 
     self._current = [e for e in add(self._current, self._vector)]
 
-    c = [int(i) for i in self._current]
-    x, y = [int(i) for i in self._target] 
+    c = map(int, self._current)
+    x, y = map(int, self._target)
     r = 3
     if c in starmap(lambda a,b: [x+a, y+b], product(xrange(-r, r+1), xrange(-r, r+1))):
       self._moving = False
       
   def draw(self, screen):
     pygame.draw.aaline(screen, DINGLEY, self._start, self._current)
-    r=1
-    x, y =map(int, self._current)
+    x, y = map(int, self._current)
     for p in starmap(lambda a,b: [x+a, y+b], product((-1, 0, 1), (-1, 0, 1))):
       screen.set_at(p, RED)