My snake

This is a discussion on My snake within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Ok the problem you are facing is you are trying to compile it is VC++ or some other compiler.. COmpile ...

  1. #16
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok the problem you are facing is you are trying to compile it is VC++ or some other compiler.. COmpile in in compilers like Turbo c++ ot the ones that support BGI library and thos which compile dos programs.. I think VC++ and Borland Builder have an option to compile dos programs try it...


    And i learned to use BGI color library "graphics.h" by looking at the definition in the help and playing around with its functions....



    Any more doubts?????

  2. #17
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Well... Graphics.h was like made for borland....

    and... I cant figure it out!! I tried a Dos app and still errors!?
    What is C++?

  3. #18
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Please help me if you can... I dont want to be stuck in ASCII forever

    I would be sad and i wouldnt sare my crap if I had some...
    What is C++?

  4. #19
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Then compile it using a borland compiler...

    I dint get your question ASCII???????

  5. #20
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    Originally posted by vasanth
    i see people only downloading my source but no reviews....
    245 points, woo-hoo! Let's see, for the reviews:

    It's a neat game for it's size, thought it was quite interesting. A couple of thigs to improve on though:

    1. sometimes as the snake goes across the apple the apple disappears but is not *eaten*. This happens then you go over the right-most part of the apple. In his case, you have to come back and walk over the empty spot to *eat* the apple.

    2. Not sure how this should be done, but isn't the smake supposed to die when it runs into it's own body? Right now the only way it happens if oyu run into the wall. I was able to make some interesting loops with the snake at a bigger length, (past 100 points)...

    Oh well, back to playing snake
    This is my signature. Remind me to change it.

  6. #21
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok thanx.. I will look into those problems...

  7. #22
    Registered User
    Join Date
    Aug 2001
    Posts
    207
    Really nice piece of code.


    Comments about the game:

    1) I'd try to change the bip noise, it's annoying

    2) maybe a bigger apple would be nicer. I've got problems to see that little thing on my 17"

    3) good luck trying to solve that bug with hitting back the snake


    Comments about the code:

    1) uauh, I thought it'd be much more complex than what you've done

    2) I wouldn't know how to start if I wanted to do it by myself

    3) I use Turbo C++ version 4.5 and I've got the same error you guys were talking about; so I couldn't compile it myself

    Nice job

  8. #23
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok i get your problem... Well you are using Borland 4.5 which i think compiles 32bit programs.. To compile my program use Turbo c++ v 3.0 or 3.5.. Well here is the link to download it

    Still if does not work.. message me.. I aill mail you my compiler.. It will be just 3.5 MB....

    And thanx for your coments.. I am workin on it... Well the code can still get smaller if you structure it properly...

  9. #24
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok i get your problem... Well you are using Borland 4.5 which i think compiles 32bit programs.. To compile my program use Turbo c++ v 3.0 or 3.5.. Well here is the link to download it.. I guess my code is not ANSI standard.... May be it is because i leant c using this compiler...

    http://www.siamcom.co.th/downloads/TC30.zip

    Still if does not work.. message me.. I aill mail you my compiler.. It will be just 3.5 MB....

    And thanx for your coments.. I am workin on it... Well the code can still get smaller if you structure it properly...

  10. #25
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Many have downloaded the source .. I am sure for many it compiled... For thos who did get it compiled.. please post here.. So we can know what the problem is.....

  11. #26
    Registered User alpha561's Avatar
    Join Date
    May 2002
    Posts
    18
    Here I was thinking you'd posted a picture of your pet snake when it was your game!
    alpha561

    "You don't want to sell me death sticks"

  12. #27
    Registered User Commander's Avatar
    Join Date
    Sep 2001
    Posts
    804
    I played with the hiehest speed for 5 seconds!!!! go me
    oh i'm sorry! i didn;t realize my fist was rushing to meet ur face!

    MSN :: commander_android@hotmail.com []*[]

  13. #28
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    5 seconds with the highest speed... WOW.. i was not able to sustain even 2 seconds... Thats great....


    And do you guys think i should make a key for manualy lengthning and shortening of the snake.. Like the speed is controlled...

  14. #29
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    ok guys thisthread is almost closed.. Have a look at the new thread My new advanced snake.. to download the latest i have odnt with a lot more features

  15. #30
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    just 1 more how what part of the code is the function
    for how to make it move by itself?

Page 2 of 3 FirstFirst 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A snake game - Memory problem
    By gavra in forum C Programming
    Replies: 29
    Last Post: 11-23-2008, 11:58 AM
  2. Need help with a snake game (ncurses)
    By Adam4444 in forum C Programming
    Replies: 11
    Last Post: 01-17-2007, 02:41 PM
  3. Contest - Snake Numbers
    By pianorain in forum Contests Board
    Replies: 46
    Last Post: 06-15-2006, 07:52 AM
  4. Snake
    By Grantyt3 in forum Game Programming
    Replies: 2
    Last Post: 05-24-2006, 01:35 PM
  5. game (snake)
    By nps in forum C Programming
    Replies: 1
    Last Post: 10-09-2001, 10:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21