Solved

C source code required

Posted on 2000-02-19
7
539 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

For those of you searching for a fun but also medium paced MMORPG game I would highly suggest Ragnarok Online. This MMORPG is a bit older than World of Warcraft and in a way is extremely different. Compared to WoW's 3D environment and massive wor…
Programming  of  forecasting lottery numbers for self use  on Turbo C++ is done by use of random number generator code by a program algorithm logic. Random numbers usually generates numbers between definite interval. Therefore, when entering the c…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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