Solved

C source code required

Posted on 2000-02-19
7
547 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

See the related links at the bottom of the tutorial for downloads and supplemental information. Introduction The Nvidia 3D Vision Kit is a [not so] new gaming technology which allows you to play the newest computer games in "Stereo 3D" (like …
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

695 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