Solved

C source code required

Posted on 2000-02-19
7
535 Views
Last Modified: 2010-04-30
I am interested in programming a MS - DOS based game in the text mode (not in the graphics mode) using C programming language.

I have thought of programming "Nibbles" (this is a dos based game where a snake tries to crunch numbers from 1 to 9 at each level without hitting the walls or itself).
As the snake eats each number it's tail goes on increasing in length.

Rules:
1.  The snake can't hit it's own body.
2.  The snake can't hit the walls of the interface.

So what I need is a working source code of any game developed in C (in text mode graphics i.e.  80x25) which is similar nibbles so that I get a feel of it.

This game should make heavy use of data structures like link lists, queues, stacks, etc...

Please e-mail the source code to the following address

remie_antao@yahoo.com

Thank You.
0
Comment
Question by:Shylesh
  • 2
  • 2
  • 2
  • +1
7 Comments
 

Author Comment

by:Shylesh
ID: 2538198
Urgent !!!
0
 
LVL 10

Expert Comment

by:paasky
ID: 2548336
Hi Shylesh,

See page (find text "Ring Worm")
http://www.onr.com/user/mitchell/code.html

There you can download a source of "worm game".

Hope this helps,
Paasky
0
 
LVL 2

Accepted Solution

by:
Resonance earned 75 total points
ID: 2608478
The Ring Worm example listed above is a VGAish game, from the description on the page, using the Allegro library.  Of greater use is probably the worm.c program from the BSD games collection.  It was written for unix curses, but is definitely a text mode interface.  The source for the entire BSD games collection can be found in a number of places, the one that comes to mind most quickly is in the bsdgames package that can be found on the Debian GNU/Linux website (http://www.debian.org, look through the packages)

Since that collection is fairly hefty, I've mailed a copy of just the worm segment (program and makefiles) to the address given.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:AUTHORICED
ID: 2831058
i mailed u my version of nibbles/snake:
no unix, no VGA but a working DOS game in txt mode with C source ;] (code may be a bit dirty sometimes, but hell, it works)
(the 'game' itself can also be found at http://authoriced.cjb.net ->progsG)
enjoy (;p])
0
 
LVL 2

Expert Comment

by:Resonance
ID: 2831195
I'd just like you to know that I think you're pathetic.  This question was answered *months* ago, credit awarded, and only some bug has apparantly prevented it from being closed properly -- and when you find it, instead of contacting an administrator that it needs to be closed, you go for the off chance that it will be autoclosed again.
0
 

Expert Comment

by:AUTHORICED
ID: 2831396
*u really think i look at the date of a question or care about points? all i see here is a non-accepted answer, and if that is a bug how the * should i know that. all i want to do is try to help people okay so if u think thats pathetic so be it. im very very very vEry sorry;
greetings. Mr Pathetic.  
0
 
LVL 10

Expert Comment

by:paasky
ID: 2831992
I heard that Auto-Grader will be run today (testing it)... it has been off after EE moved their servers two months ago because the script was not working properly anymore.

Regards,
paasky
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ipad apps 2 316
autodesk maya 9 251
SimCity 5 System Requirements 5 624
Suggestion on color and font 2 107
If you are interested in the gaming world and want to try World of Warcraft, I'd recommend this basic set of add-ons to get you started.  All add-ons are available either by Google search or on Curse.com. For the person who doesn't want to get in…
As we all know Counter Strike is a very popular computer game. Usually it is played over a network for which people create a server and users join it but it is interesting to know that one can creates a dedicated server which not only hosts the game…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now