

Please contact me if you know the true creator and I'll be sure to add his/her name here). (I'd love to give credit to the author of this GIF. “And now we'll show you a cartoon.Connecting to server.No connection. If you watch the video all the way to the end, before it loops back, you'll see a short message in Russian. I hope you agree, it's pretty awesome to watch!Īt various times, it looks like he's going to get trapped, but just at the last second the tail passes by and creates space for the head to move into! The other day, a few of my facebook friends forwarded me this little animiated GIF, showing an exceptional player beating the game.
#When was screen snake created code#
It can be used as a great example to teach young students the concept of code optimisation – when rendering the snake, it's not necessary to redraw all the snakes each time you simple have to draw the new position of the head and take the last segment of the tail away! It's a fun programming exercise to write a simple version of the game. The above screen is a picture taken on an early Nokia Phone. I've seen some version of snake running on just about every computer I've ever encountered. The game starts off relatively easy and forgiving, but as the game progresses, it gets harder to get to the food and not eat part of your own tail. The snake starts off short, and the aim is to drive the snake over the food item.Īfter the snake eats the food, he grows in length and a new piece of food is randomly placed on the board. If the head touches either the walls, or any other part of the snake's body the game is over.Ī single, randomly placed, piece of food is also on the screen. The snake never stops moving, and the player controls the head of the snake using the four cardinal directions: Up, Down, Left and Right.Įach segement of the body of the snake follows the one infront. In the standard variant of the game, the player controls a long snake-like create which is confined in a box. One of the earliest, classic, video games is the game of Snake.
