CrackUC Posted April 18, 2012 Report Share Posted April 18, 2012 Guys i'm trying to make a Snake game in C first when i thought to make it.i thought it would be easy but soon i realised it will be damm dificult programing. I have no idea(very less)how to make it. -firstly we need some(exactly i don't know) variables. -Our snake will be made with ASCII value -Size of the snake will increase automatically after 20 seconds -Snake will automatically move 1 step ahead after 20 sec in its current direction -Full border would be there. -Snake will eat random no.s Means a full snake game in C possible doubts till now How to orientate snake positions? How snake will move by keys?(maybe ASCII value?) How it will end game once it touches itself? And more doubts actual doubts will come when i star actually programming but first i'm not geting the logic to make it possible.If i don't know logic i can't even made it possible.! Please give me logic not the code. Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 i'm not googling because some sites will gie whole code too i don't wanna see it and wanna make it myself. Quote Link to comment Share on other sites More sharing options...
NikShiP Posted April 18, 2012 Report Share Posted April 18, 2012 i'm not googling because some sites will gie whole code too i don't wanna see it and wanna make it myself. :rofl: Quote Link to comment Share on other sites More sharing options...
bladefire Posted April 18, 2012 Report Share Posted April 18, 2012 give me 3 days and i will give some actual code to start with Quote Link to comment Share on other sites More sharing options...
NikShiP Posted April 18, 2012 Report Share Posted April 18, 2012 give me 3 days and i will give some actual code to start withthats great.. Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 give me 3 days and i will give some actual code to start withplease don't give me code dude i want actual algorithm not the if the thing is of code i could get from internet and start it and end in 5 days itself..! Quote Link to comment Share on other sites More sharing options...
bladefire Posted April 18, 2012 Report Share Posted April 18, 2012 use delay(20000) to give 20 sec delay. 1 step can also be added in the same delay. Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 use delay(20000) to give 20 sec delay. 1 step can also be added in the same delay. Dude this i knw but major problem is user will define where to move and it will move that way i have 2 ideas for it make it work # 1 idea--Make each point on the area a variable means i'll store each point data in a array..! and user will make than furthur i'll make if i made like this than program would be like hell never ending coding.. #2 idea make to points @ corner variable 1 st and 2nd using the square area formula make it a whole area and each ponit automatically stored in array Still i beleive both ideas are fail..! i need some tym to devote it..! Quote Link to comment Share on other sites More sharing options...
bladefire Posted April 18, 2012 Report Share Posted April 18, 2012 Dude this i knw but major problem is user will define where to move and it will move that way i have 2 ideas for it make it work # 1 idea--Make each point on the area a variable means i'll store each point data in a array..! and user will make than furthur i'll make if i made like this than program would be like hell never ending coding.. #2 idea make to points @ corner variable 1 st and 2nd using the square area formula make it a whole area and each ponit automatically stored in array Still i beleive both ideas are fail..! i need some tym to devote it..! you will have to run multiple for loops combined with clrscr() to make the snake move. the code is very complicated. give some days Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 you will have to run multiple for loops combined with clrscr() to make the snake move. the code is very complicated. give some dayshmm that is very imp dude ..! And yeah i thought it would be easy but its indeed very very very complicated program..! but it would be fun doing it.! Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 ----- Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 Replace those smileys with )). The above program only works in TC. Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 FORK u please censor the code please admins censor the code i wanna create myself..! Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 Replace those smileys with )). The above program only works in TC.pleaes remove ur post please.! i do wanna see it.! Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 --- Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 pleaes remove ur post please.! i do wanna see it.! I'm helping u and u dont wanna see? Just get some idea from it then make it yourself. Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 I'm helping u and u dont wanna see? Just get some ida from it then make it yourself.please remove i want logic algorithm not the code itself...Dude if i want code i could get from google too..! And don't need to heat up my brain here.@ Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 please remove i want logic algorithm not the code itself...Dude if i want code i could get from google too..! And don't need to heat up my brain here.@ Can you become a bit polite? Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 Can you become a bit polite? sorry Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 Did what you wanted. Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 sorry u r saying no? or saying sorry for being impolite? Check this site out. May help you. {It DOES NOT contain the whole code.} Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 u r saying no? or saying sorry for being impolite? Check this site out. May help you. {It DOES NOT contain the whole code.} hmm i saying sorry for impolite..! And that site contains whole code too I'll refer that when i would not be able to make it myself as its really damm complicated..! i have no hurry i have whole summer vacations with me ..! soon for it.! still thanks for site.! Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 hmm i saying sorry for impolite..! And that site contains whole code too I'll refer that when i would not be able to make it myself as its really damm complicated..! i have no hurry i have whole summer vacations with me ..! soon for it.! still thanks for site.! In which standard you are? Quote Link to comment Share on other sites More sharing options...
NiharG Posted April 18, 2012 Report Share Posted April 18, 2012 And though that site contains a code, Its a step by step tutorial which explains logic too. Quote Link to comment Share on other sites More sharing options...
CrackUC Posted April 18, 2012 Author Report Share Posted April 18, 2012 In which standard you are?doesn it matter here?If i say some small u'll say its expected if i say big u'll say u still kid so it doesn't mater in which standart i am everyone makes mistake.! And though that site contains a code, Its a step by step tutorial which explains logic too.yeah dude that why i'll refer that site when i isn't able to create the program.! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.