Brainiac11 / My-Projects

Bad indentation detected PYL-W0311
Style
Minor
a year agoa year old
Bad indentation. Found 4 spaces, expected 8
 47  def step(self, direction):
 48    old_head = self.snake[0]
 49    movement = DIRECTIONS[direction]
 50    new_head = old_head + movement 51
 52    if (
 53        new_head[0] < 0 or
Bad indentation. Found 4 spaces, expected 8
 46
 47  def step(self, direction):
 48    old_head = self.snake[0]
 49    movement = DIRECTIONS[direction] 50    new_head = old_head + movement
 51
 52    if (
Bad indentation. Found 4 spaces, expected 8
 45    self.fruit = np.array([x, y])
 46
 47  def step(self, direction):
 48    old_head = self.snake[0] 49    movement = DIRECTIONS[direction]
 50    new_head = old_head + movement
 51
Bad indentation. Found 2 spaces, expected 4
 44        break
 45    self.fruit = np.array([x, y])
 46
 47  def step(self, direction): 48    old_head = self.snake[0]
 49    movement = DIRECTIONS[direction]
 50    new_head = old_head + movement
Bad indentation. Found 4 spaces, expected 8
 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
 47  def step(self, direction):
 48    old_head = self.snake[0]