Skip to content
Snippets Groups Projects
Commit d5772653 authored by Usman Irfan's avatar Usman Irfan
Browse files

Fixed one bug

parent ffc813a3
No related branches found
No related tags found
No related merge requests found
......@@ -163,9 +163,7 @@ def game(speed, colour,food_colour, backgroundColour):
'''
#Draw snake
if ((maze_x and maze_y) or (maze2_x and maze_y)):
x = randint(0, grid_length - 1) * self.size
y = randint(0, grid_length - 1) * self.size
snake.draw(colour,snake_loc)
#update display
pygame.display.update()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment