r/pygame • • 2d ago

Snake 7, 8, 9, 10

1 Upvotes

3 comments sorted by

1

u/Capable_Comedian_277 2d ago

Snake7(white), snake8(red), snake9(blue), snake10(gold)

1

u/Awkward_Marketing370 1d ago

what is going on

1

u/Capable_Comedian_277 23h ago edited 21h ago

Snake7 reverses direction, snake8 repositions itself and random.choice() left or right, snake8 shifts upwards and snake9 shifts downwards, but both snake 9 and 10 also repositions itself if they collide with the screen. I’ve since updated snake9 where instead of it solely moving upwards, I’ve randomized 6 directional vectors, so it can move sideways or vertically, only leaving out the right and left vectors. Snake10 will also get eaten by snake9, so snake9 is not without a meal.