Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 13

Snake game for C++

project
By Group 1
Zaw Linn Htet
Kaung Kyaw Han

Our Pyae Linn


members  Zun Myat Noe
Hay Man Kyaw Min
Nyein Htut Tin
Why snake game?

INTERACTIVE FUN CHALLENGING


What the output will look like
(example output saved from Google)
Start/Help/Quit

Input keys for


Create game area Randomly snake's
Start and snake generate food movement

Y--
w

Help Show keys for


s Y++
snake's directions

a X--

Quit Exist
X++
d
Did snake Increase snake's
Update snake's position Increase score by 1
eat food? length

Did snake Redraw snake


hit wall? and food

Did snake
hit tail? Input keys

Game over Display score


How system Start, Help and Quit (Input from user)
works
For "Start",

How
system movements of snake will be
controlled by some keys on keyboard

works
growth of that will be by consuming
food, which will be generated at any
random point within the boundaries
at given interval of time.
Game will be over if the
How system snake touches its tail or
hits the wall.
works
And the score will be
displayed.
For "Help",
the controlling keys for How system
movements of snake works
will be displayed.
Functions (for wall, food, help, etc.)
Structures (tail position)
Classes (for organizing functions)
What we Linked lists (for direction)
will be Loops (will be used in functions)
using If conditions (will be used in functions)
Switch cases (for key inputs)
Etc...
Headers to be
included
• #include <iostream>
• #include <windows.h>
• #include <stdlib.h>
• #include <conio.h>
• #include <fstream>
• Codeblocks
• At least 32 bits
Requirements • At least 2 GB of RAM
• GCC compiler and GDB debugger

You might also like