Brainiac11 / My-Projects

Unnecessary typecast PTC-W0020
Anti-pattern
Minor
a year agoa year old
unnecessary type casting - remove outer call to list()
 40    while True:
 41      x = random.randint(0, SCREEN_SIZE-1)
 42      y = random.randint(0, SCREEN_SIZE-1)
 43      if list([x, y]) not in self.snake.tolist(): 44        break
 45    self.fruit = np.array([x, y])
 46