0% found this document useful (0 votes)
41 views

Caterpillar Game Report

Uploaded by

kaluukaluu412
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Caterpillar Game Report

Uploaded by

kaluukaluu412
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Project Report

(on Catherpillar Game)

INDEX

Sr.No. Topics PageNo.


1) Abstract 3

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

Catherpiller game is a simple console application without graphics.


In this project, you can play the popular “Catherpiller Game” just like
you played it elsewhere. You have to use the up, down, right or left
arrows to movethesnake.Foodsareprovidedattheseveralco-
ordinatesofthe screen for the snake to eat.
Everytimethesnakeeatsthefood,itslengthwillbyincreasedbyone
element along with the score. I have used Python as Programming
language for writing the code for the project and VsCode for writing
the programs. Operating system used Windows 10.
INTRODUCTION
playing games is fun and exciting it gives us relief from stress and
unwindfromourstressfulworks.Manyofusspendourvacanttime or
others that use most of their time in playing and exploring new
games. Today, with the rapid development of technology we have,
games that are rising up together with it. Nowadays with the
technology we have many games that are developing for computer
most specifically for windows. With the high technology equipped
with these computers, computer games become robust and attract
many people to buy or have this gadget for them to experience
what’s inside it which makes it a trend for the new generation of
gadget.

Catherpiller game is a computer action game; whose goal is to


control a
snaketomoveandcollectfoodinamap.Ithasbeenaroundsincethe earliest
days of home computing and has re-emerged in recent years on
mobile phones.
Itisn’ttheworld’sgreatestgame,butitdoesgiveyouanideaofwhat you can
achieve with a simple python program, and perhaps the basis
bywhichtoextendtheprinciplesandcreatemoreinterestinggames on
your own.
Tomovethesnake,use‘uparrow’forup,‘downarrow’fordown, ‘left
arrow’ for left and ‘right arrow’ for right. Press ‘Q’ to exit the
game at any time, press ‘C’ to continue the game.
Theaimofthegameisto collect thedots(food)andavoid
theobstacles(crossesborders).Asyoucollectthefood,thesnakegets longer.
The score also increases. There is no concept of lives. Once You hit an
obstacle, that’s it, game over.

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:

Robustness is nothing but its abilitythat it cantolerate the affects of


system functional body. And it can also be defined as its systems
abilitythatitcanwithstandtochangewithouttransformingitsinitial
stable configuration
II. Reliability:

The system is trustworthy and it is consistently good in performance.


Itcanalsobestatedasthesystemperformsthefunctionwithoutany
failure under certain conditions and specified period of time.

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:

Thealgorithmiscapableofproducingdesiredresult orithasthe ability to


provide better results.
WORKINGALGORITHM
Let'slookathowaprogramtorunthewhole gamemightlook:

1. Drawtheplayingareawithboundingrectangle,setthecounterto zero
and display it.

2. Drawthesnakeinastartingposition.

3. Drawthefoodinastarting location.

4. Onuserinput,changesnake direction.

5. Movethesnakeonemove

6. Ifthesnakeisoverfood,eatit,increasethescore,grow,move the food,

7. elseif thesnakeisoverinawall, die.


8. Gobackto4.

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)

You might also like