Snake Game in C programming Full Explanation in Hindi || Mini Project in C programming Language

preview_player
Показать описание
Hello YouTube,
In this Video I have explained how one can make a simple snake game with some basic knowledge of C programming. In the video I explained it to my best.
Basically, we start with the main function in there I called different function. For the simplicity of program, I have divided program into different function, and which is the best way of programming.

There is some basic knowledge that one must have before moving forward on this video and they are Function Call and function declaration, Switch case default, loops control and most importantly are Kbhit() and rand() function.

kbhit() is present in conio.h and used to determine if a key has been pressed or not. To use kbhit function in your program you should include the header file “conio.h”. If a key has been pressed then it returns a non-zero value otherwise returns zero.

rand() function is used in C to generate random numbers. If we generate a sequence of random number with rand() function, it will create the same sequence again and again every time program runs. Say if we are generating 5 random numbers in C with the help of rand() in a loop, then every time we compile and run the program our output must be the same sequence of numbers.

clear Output Screen - When we run a program, previous output or other command prompt/ Linux Terminal command's output appear there. We can clear the output screen using C program.

Functions which are used to clear output screen depend on the compiler, commonly used functions/methods are:

1. Using clrscr() - For TurboC Compiler

2. Using system("cls") - For TurboC Compiler

3. Using system("clear") - For gcc/g++ compiler in Linux

Please watch: "Snake Game in C programming Full Explanation in Hindi || Mini Project in C programming Language "

Please watch: "[Scrcpy]Control Your Android Phone from PC via USB [Hindi]|| How to mirror Android screen via USB "

Please watch: "TOP 10 Naruto Ringtones_(FREE DOWNLOAD)| Best Compilation of Naruto's ringtones |Beebop 360 "

Please watch: "Zebronics disc Bluetooth headphones with mic. Unboxing and Review. By Anmol shah "

All the Background Songs Credits:
––––––––––––––––––––––––––––––

Creative Commons — Attribution 3.0 Unported— CC BY 3.0

––––––––––––––––––––––––––––––
#snakegameinc
#minicproject
#anmolkumarshah
#gameprogramming
##define
Рекомендации по теме
Комментарии
Автор

Plz background music remove KR de samjne ma mushkil ho rahe ha

umaimatariq
Автор

@21:03 why we increment piece variable in setup function, as it only run one time when we take first food only. What us its use then?
I don't get this. Point

ishumiglani
Автор

I couldn't understand anything, but I like your video because you show it in practice

ViciadoSocialempires
Автор

Awesome Explanation of Snake Game Using C Lanuage....👌👍👌

mr.hacker....
Автор

Which IDE you are using ....Turbo C++ says header files are missing

marathilove
Автор

Bro how many days u took to create andwrite this program

funnyvideos
Автор

hello sir to develop a game konsa tool(sofware) use kiya he bz me turbo c++ use kar raha hu so i face some error and ha online compiler pe bhi nahi run ho raha he please help me.

harshadsurve
Автор

Sir, its drawing infinite times even though we have used system("cls")

srakeshkulal
Автор

Bro system( "cls"); through error that is decleration is not allowed here

hardikgupta
Автор

Bhai yeh snake game ki jo boundary hai yeh baar baar bling kyu hoti hai koi bata do please 🤔🤔🤔🤔🤔

DisneyToons_
Автор

Sir please tell snake move control bottom koinsa hai

afjalsiddique
Автор

Bhai music keue dala hei. ..aap ka voice music dominate kar raha hei. .samaj nei mei muskil hoo raha hei

sharmasvlog
Автор

hi bro can i know which compiler you have used please

tarunkarimelli
Автор

Video is nice but sound se disturb ho raha hai

codinghub
Автор

Sir please share it's source code.

tushargogiya
Автор

bhai background music ke wajah se kuchh smjh nhi aa raha

styleindiastyleindia
Автор

Pls tell me how to decrease time of movement of snake since the snake is moving very fast, so it is difficult to control the movement of snake

lakshitpathak
Автор

Please remove this background sound ..

akashsingh-xvof
Автор

Bro iss program ka flowchart milega plzz

pranavmuthige
Автор

even through i use system("cls"), it is still running infinite times

the_anuragsrivastava
welcome to shbcf.ru