C and C++ Programming Resources

Custom Search

Snake Game

This program simulates the game “snake”.
A string of characters moves on the screen according to arrow keys pressed by user. If it touches itself or screen boundary, the program terminates. When the snake moves, in arbitrary screen positions some digit (1-9) appears.
The objective of the game is to make the snake eat the said digit, so that it is added to the score. When a digit is eaten, the size of the snake increases by the number of characters equal to the value of the digit.
In this version of the game there are provisions for saving / loading too.

  Snake Game (18.8 KiB, 24,847 hits)

Tags: ,

There are 4 Comments to this post. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response or TrackBack from your own site.


Leave a Reply

You must be logged in to post a comment.