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

Fixed the food appearance

parent abdc6f5e
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,6 @@ class Food():
if(abs(x - location[0]) < 15 and abs(y - location[1]) < 15):
location[0] = randint(0, grid_length - 1) * self.size
location[1] = randint(0, grid_length - 1) * self.size
if(location[0], location[1] in snake_loc):
if(location in snake_loc):
location[0] = randint(0, grid_length - 1) * self.size
location[1] = randint(0, grid_length - 1) * self.size
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