CGR Microproject Report
CGR Microproject Report
“Prachi Jadhav”
“Sharayu Jadhav”
“Siddhi Jadhav”
“Vaishnavi Jadhav”
ROLL NO:- 21
22
23
24
SUBJECT INCHARGE
Mr. Urvesh Ghude
SNAKE GAME
Is done by
“Prachi Jadhav”
“Sharayu Jadhav”
“Siddhi Jadhav”
“Vaishnavi Jadhav”
is submitted for
“Snake Game”
for
Snake game
By
Jadhav
23
Siddhi Jadhav 23112120244
24
Vaishnavi 23112120245
Jadhav
SUBJECT INCHARGE
Mr. Urvesh Ghude
Vision: -
To provide technically competent and skilled diploma computer
engineers to fulfill the needs of industry and society.
Mission: -
M1:- To provide industry oriented quality education and training.
M2:- To impart and inculcate theoretical and practical knowledge.
M3:- To provide interpersonal skills and social ethics.
COMPUTER ENGINEERING DEPARTMENT
PROGRAMME OUTCOMES
PO1: Basic and Discipline specific knowledge: Apply knowledge of basic mathematics,
science and engineering fundamentals and engineering specialization to solve the engineering
problems.
PO2: Problem analysis: Identify and analyze well-defined engineering problems using
codified standard methods.
PO7: Life-long learning: Ability to analyze individual needs and engage in updating
in the context of technological changes
COMPUTER ENGINEERING DEPARTMENT
PROGRAMME EDUCATIONAL OBJECTIVES
PEO1: Provide socially responsible, environment friendly solutions to
Computer engineering related broad-based problems adapting professional ethics.
Proposed Methodology
● First, Search the topic for which you want to make a project, and then propose it to the
Subject In charge.
● After finalizing the topic, start gathering the information about your project.
● For Program Execution, write the source code of your program in any suitable IDE.
● Recheck the program with the subject in charge.
● Now, it’s time to make a report of your Selected Project.
Action Plan
Subject In-charge
(Mrs.Urvash Ghude)
SNAKE GAME
Rationale
In C graphics, the graphics.h functions are used to draw different shapes like circles,
rectangles, etc, display text in a different format or different fonts and colors. By using the
functions in the header graphics.h, programs, animations, and different games can also be made.
Literature
Resources Required
bool gameover;
int nTail;
eDirecton dir;
void Setup() {
gameover = false;
dir = STOP;
x = width / 2;
y = height / 2;
void Draw() {
system("cls");
if (j == 0)
cout << "#"; //walls
if (i == y && j == x)
else {
if (j == width -1)
void Input ()
{
if (_kbhit ()) {
case 'a':
dir = LEFT;
break;
case 'd':
dir = RIGHT;
break;
case 'w':
dir = UP;
break;
case 's':
dir = DOWN ;
break;
case 'x':
gameover = true;
break;
void algorithm()
{
tailX[0] = x;
tailY[0] = y;
prev2X = tailX[i];
prev2Y = tailY[i];
tailX[i] = prevX;
tailY[i] = prevY;
prevX = prev2X;
prevY = prev2Y ;
switch (dir) {
case LEFT:
x--;
break;
case RIGHT:
x++;
break;
case UP:
y--;
break;
case DOWN:
y++;
break;
default:
break;
score +=10;
nTail ++;
int main()
{
Setup();
while (!gameover) {
Draw ();
Input ();
algorithm ();
{
Return();
}
OUTPUT: -