Snakes icon indicating copy to clipboard operation
Snakes copied to clipboard

Add walls

Open americast opened this issue 7 years ago • 6 comments

Add walls in between. Implementation depends on the one who sends the PRs. One may increase the wall with levels or create a separate game mode with walls.

americast avatar Dec 01 '17 18:12 americast

Are these suppose to be random walls in the space?

rishabhdeepsingh avatar Dec 02 '17 07:12 rishabhdeepsingh

Random walls can create a few problems like:

  1. Food/Snake is fully enclosed by walls.
  2. Wall appearing few pixels in front of snake, not giving the player enough time to react.

So, I think you have to predetermine the position and size of walls, in whatever way you are implementing. :-)

hrshbh avatar Dec 02 '17 12:12 hrshbh

As per your wish @rishabhdeepsingh. As @hrishabh23 mentioned, just make sure the food, whose location is randomly generated is no situated over the walls. Also, you can restrict the area where there can be a wall so that the snake does not collide into them just at the beginning of the game.

americast avatar Dec 02 '17 20:12 americast

@americast @hrishabh23 Let's say we are on Score 100 and our Snake is soo Large to Handle and there comes a wall in between so we have nothing to do instead of killing our self :(

rishabhdeepsingh avatar Dec 05 '17 18:12 rishabhdeepsingh

@rishabhdeepsingh Well, in that way, for some value of score, you might end up covering the entire window and have to kill yourself! :stuck_out_tongue:

americast avatar Dec 07 '17 16:12 americast

As a part of kwoc, I would like to work on this issue.

prashantramnani avatar Dec 04 '18 23:12 prashantramnani