Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

SNAKE

GAME

Presented by:-
Srihari N
III year & computer science
engineering

Chennai institute of
technology
• Introduction of project
• History of Snake Game
• Requirements
• Objective
• ER Diagram
Contents • Features & About the project?
• Computer Graphics
• Testing
• Future scope of the program
• References
• The game called "Snake" or "Snake Game"
typically involve the player controlling a line or
snake, there is no official version of the game,
so gameplay varies. The most common version
of the game involves the snake or line eating
items which make it longer, with the objective
being to avoid running into a border or the
Introduction snake itself for as long as possible. The player
loses when the snake either runs into a border
or its own body. Because of this, the game
becomes more difficult as it goes on, due to
the growth of the snake. Nokia has installed
the "Snake Game" on many of its phones. The
game is also available on several websites,
including YouTube, which allows viewers to
play the game while a video loads
• The Snake has appeared in many different
forms over the decades, but it’s first
appearance took place in the mid 1970s and
was called Blockade. It was the creation of
Gremlin Industries, who specialized in coin-
operated arcade machines. In 1984, they closed
History of their doors, never to open again. But their game
still lives on. By 1997, it had found its way into
game people’s pockets, onto their Nokia phones and
created the craze of mobile gaming among
teenagers. The Nokia 6110 was Nokia’s first
phone with Snake and they continued to
manufacture new models with the game
installed throughout the next decade.
Requirements

Application
SOFTWARE Operating system
software :- TURBO
REQUIREMENTS: :- WINDOWS
C++ 2.0

Language :-
HARDWARE
C(Computer Hard Disk :- 32 GB
REQUIREMENTS
Graphics)

Processor :- Any
RAM :- 128 MB
Pentium version
This Project in C language of Snake Game is a simple
console application with very simple graphics. In this
project, you can play the popular “Snake Game” just
like you played it elsewhere. You have to use the up,
down, right or left arrows to move the snake.

Foods are provided at the several co-ordinates of the

Objective screen for the snake to eat. Every time the snake eats
the food, its length will by increased by one element
along with the score.

It isn't the world's greatest game, but it does give you


an idea of what you can achieve with a relatively
simple C program, and perhaps the basis by which to
extend the principles and create more interesting
games of your own.
This snake game is just similar to games which are found under mobile games section. It
uses the concept of graphics to display the menu items and all objects on a single screen.

An instruction has been given on the top right side of the menu where users must go
through the instruction to play this game.

Players will able to check their result after games get over.

Features & The score section will display the total score of the player, game level and maze which has
been used.
description The object snake position has been set random, so whenever player will start the game,
the snake will appear at random location every time.

The snake object will always appear in green color.

The arrow keys “up,down,left,right” has been set within the program to move the snake to
right, left, top and bottom respectively
• Computer Graphics is one of the most
Computer powerful and interesting aspect of
computers.

graphics • There are many things we can do in


graphics apart from drawing figures of
various shapes.
• All video games, animation, multimedia
predominantly works using computer
graphics.

Graphics in C
• There is a large number of functions in C
which are used for putting pixel on a
graphic screen to form lines, shapes and
patterns.

• The Default output mode of C language


programs is “Text” mode.
• We have to switch to “Graphic” mode
before drawing any graphical shape like
line, rectangle, circle etc
• First of all, we must include the ”graphics.h” header file in our source program

• GCC compiler doesn’t provides inbuilt facility to run graphics.h library.

• So you are not able to run graphics in C language

• The initgraph function is used to switch the output from text mode to graphics mode

• The initgraph function takes three arguments

intigraph(&graphics_driver,&graphics_mode,Path _to_driver);

• Graphics mode must be closed at the end

closegraph();
• Testing is the major control measure used
during software development. Its basic
function is to detect errors in the software.
During requirement analysis and design, the
output is a document that is usually textual
and no executable. After the coding phase,
computer programs are available that can be
Testing & executed for testing purpose. This implies
that testing not only, has to uncover errors
screenshots introduced during coding, but also errors
introduced during previous phase. Thus the
goal of testing is to uncover the requirements,
design and coding errors in the programs. So
after testing the outputs of my project are as
follows:
Future scope of the project

• Our project will be able to implement in future after making some changes
and modifications as we make our project at a very low level. So the
modifications that can be done in our project are:
• 1.It can be made with good graphics.
• 2.We can add more options like Top scores and Player Profile
• 3. We can add multiplayer option
Reference

https://en.wikipedia.org/wiki https://www.youtube.com

https://www.cs.bham.ac.uk
Thank you

You might also like