Snake problem in C? i haven't done any "graphical" programs in C before.i would 
like to try this one.
considering that i dont have knowledge in the graphics library of C, so i 
presume that I am on the same level as a freshman taking CS at XU. maybe 2 - 3 
weeks is reasonable to make the snake program with 3 hrs a day working on the 
program.

i totally agree with sir jes "But for an average freshman, with little 
knowledge on algorithms and techniques, I would say double it: so 2 weeks it 
is. That I think is more than enough. That will give them enough time to do 
research, download sample codes (this cannot be avoided nowadays), and think on 
how to move on while doing other assignments/tasks (RS, Fil, Eng, etc). Im 
assuming they are taking up their first CS subject, and no former background in 
programming."
Can I also ask about C? i know how to handle alphanumeric characters in C like
printf("Enter a key: %c", &input); if ( input = = 'a')  printf("A");if (input = 
= 'b')  printf("B");etc, etc, etc.... (yes switch-case is better than 
if-then-else if there are alot of choices).
but my problem is how to accept inputs from the ARROW KEYS? we can assign the 
key A as turn left, key D as turn right, key W as up and S as Down. But i dont 
want to use the alphabetic keys of the keyboard. I want to use the ARROW KEYS.  
like if I press the left arrow, the snake will turn left, the UP arrow, the 
snake will go up and so on.

p.s. Please spoonfeed me. I don't want "google it" answers. or else i will 
UNSCRIBE. (j/k lang.. seryos ra kaayo ang mga tao diri oi. hehehe)
THANKS.

-jikjik



      
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://lists.linux.org.ph/mailman/listinfo/klug)
Searchable Archives: http://archives.free.net.ph

Reply via email to