Caterpillar Game Report
Caterpillar Game Report
INDEX
2) Introduction 4
3) LiteratureSurvey 5
4) SystemDesign 6
5 SystemandHardware 7
Requirements
6) FunctionalRequirements 8
7) Non-FunctionalRequirements 9
8) WorkingAlgorithm 11
9) SampleOutput 13
10) Conclusion 14
11) FutureScope 15
ABSTRACT
LITERATURESURVEY
The history of the Snake game goes back to the 1970's, theconcept
originated in the 1976 arcade game Blockade, and its simplicity has
led to many implementations. However, it was the
1980'swhenthegametookonthe lookthatwewillbeusing.Itwas sold
under numerous names and many platforms but probably gained
widespread recognition when it was shipped as standard
onNokiamobilephonesinthe late1990's.The first
published Nokia, for monochrome phones. It was programmed in
1997 by Taneli Armanto of Nokia and introduced on the Nokia
6110.The game involves controlling a single block or snakehead by
turning only left or right by ninety degrees until you manage to eat
anblock.Whenyougettheblock,theSnakegrowsanextra blockor body
segment. If, or rather when, he snake bumps into the edge of
thescreenoraccidentallyeatshimselfthegameisover.Themore blocks
the snake eats the higher the score.
SYSTEMDESIGN
TocreateaSnakegamethatallowsuserstocontrolthemovement of a
snake on a screen, to get points for eating food and avoiding
running into the walls or the growing tail of the snake itself. In
thisproblem,wewanttowriteagamewhereagraphicalrepresenta tion
of a snake moves across
Thescreen.Whenitencountersapieceoffood,thesnakegrows
longer and we gain a point. If it hits the wall we die. To write this
program we are going to need:
● Awayofrepresentingthesnake
● Awayofrepresentingthe food
● Awaytodisplaythe score,
● awayforourinstructionstoreachthe snake,
● andawaytoknowwhenwe’verunintosomethinganddied
Our system is going to involve working with both hardware and
software,andsowewillneedtounderstandwhatwehaveavailable in
hardware that can assist us. If we build our software so that the
snake is controlled by directional arrows on the keyboard.
Nowthatunderstandhowourhardwarewillworkinthedesign of our
system, let’s move on to starting
thedesignofoursoftwaresystem.
SYSTEMANDHARDWARE REQUIREMENTS
SYSTEMREQUIREMENTS
OPERATINGSYSTEM:WINDOWS XPorHigher
IDE:VisualStudio.NET2005/2008 FRONT
END : WINDOWS
LANGUAGE:Python
HARDWAREREQUIREMENTS
IntelP41.5GHzorabove 512MB
RAM
80GBHDDMinimum
FUNCTIONALREQUIREMENTS
Herearetherequirements(functionalrequirements)forhowthe snake
moves.
1. Thesnakemustappeartomovearoundthe screen.
2. Thesnakemustturninresponsetouserinput.
3. Thesnakewillincreaseinlengthifiteatsfood.
4. Thesnakewilldieifitrunsintothe walls.
5. Thesnakeneverstopsmoving.
NON-FUNCTIONALREQUIREMENTS
The primary features of IT projects involve implementing like an
application, a piece of infrastructure, a patch. In this specific context
functional requirements tells us about what project does when
interacted,whereasnon-functionalrequirementsdescribeaboutthe
bounds of performance should be.
Robustness:
III. Availability:
Thesystemisavailable24*7.AvailabilityandReliabilityaredirectly
proportional as reliability increase availability also increases. The
user can have access to the system all the time.
IV. Reusability:
Thesystemcanbeusedanynumberoftimesbythespecificuser.
Andthereusabilityisconsistent,adaptableandstable.
V. Effectiveness:
1. Drawtheplayingareawithboundingrectangle,setthecounterto zero
and display it.
2. Drawthesnakeinastartingposition.
3. Drawthefoodinastarting location.
4. Onuserinput,changesnake direction.
5. Movethesnakeonemove
9. Untilthesnakedie
SAMPLEOUTPUT
CONCLUSION
The project in python programming of Snake Game is a simple
consoleapplicationwithverysimplegraphics.Inthisproject,youcan
playthepopular“SnakeGame”justlikeyouplayeditelsewhere.You have to
use the up, down, right, or left arrows to move the snake.
Foodsareprovidedattheseveralco-ordinatesofthescreenforthe snake
to eat. Every time the snake eats the food, its length will increased
by one element along with the score.
It isn’t the world’s greatest game, but it does give you an idea of
whatyoucanachievewitharelativelysimplepythonprogramming, and
perhaps the basis by which to extend the principles and create more
interesting games on your own.
FUTURESCOPE
Inthisproject,Ihaveusedsimple application,thisprojectwillbe able to
implement in future after making some changes
andmodificationsasImadethisprojectatlowlevel. The modifications
that can be done in this project are:
1. Itcanbemadewithgood graphics.
2. WecanaddmoreoptionslikeTopscoresandPlayerProfile.
3. Wecanaddmultiplayeroption.
REFERENCE:
1) https://data-flair.training/blogs/snake-game-python-
program/
8. References:
Class Lecture.
https://www.youtube.com/watch?v=rFFVyNn9_8A
http://www.c-sharpcorner.com/UploadFile/udeshikah/snake-
game-application-in-C-Sharp/
http://www.dreamincode.net/forums/topic/243537-control-issue-
with-snake-game-in-c%23/
http://csharp.net-informations.com/communications/csharp-
chat-client.htm
2)