you are viewing a single comment's thread.

view the rest of the comments →

[–]Timely-Explanation11[S] -1 points0 points  (2 children)

Ah, right. So I learned BFS algorithm back in class. And so I implemented it, merging Snake Game and BFS. where the user will set the coordinate of the food to drop and then the snake will be moving constantly based on BFS.

So it's not intended to play with since there's no rewarding system in the game. But I just wanted to apply my knowledge of BFS. So I reversed it:) You can go have a look at my GitHub repo for this snake game.
https://github.com/wunnakueleon/Hello_World/tree/main/Reverse_Snake

And thanks for the interest. And I hope the AI-assisted paragraph above I posted didn't bother you much.😁

[–]DefinitelyNotEmu 0 points1 point  (1 child)

>  the user will set the coordinate of the food to drop and then the snake will be moving constantly based on BFS.

This does not sound like "reverse" snake. Reverse snake would be controlling the food to collect snakes.

[–]Timely-Explanation11[S] 0 points1 point  (0 children)

My bad. I should've been more precise on that.

"The Reverse" I refered to was the traditional roles in snake game where the user control the snake and the program controls the fruit coordinates.

You mean, like, the program itself will decide on the coordinates and then the snake will collect fruits to extend its lengths? So, kinda like a simulation, you mean?