help about project

V

venkatmail20034u

hai to everybody,
i desired to do a project in c?
if u have idea about what types of problem solved by the c language?
and also specify if u have any project title with description please
specify to me
thanks in advance
 
M

Michael Mair

hai to everybody,
i desired to do a project in c?
if u have idea about what types of problem solved by the c language?
and also specify if u have any project title with description please
specify to me
thanks in advance

Please use your best English when trying to communicate.

Have a look into the google archives of comp.lang.c for the word
"project" or "sourceforge" in articles posted within the last
year. There are several threads about this, among others
starting at
<[email protected]>
and
<[email protected]>
respectively.

Cheers
Michael
 
M

Malcolm

hai to everybody,
i desired to do a project in c?
if u have idea about what types of problem solved by the c language?
and also specify if u have any project title with description please
specify to me
Try writing a text adventure.

Start with a grid of rooms with descriptions, and commands to go NORTH /
SOUTH / EAST / WEST.
Then take out some of the connections so you can't get to every room from
evey one adjacent.

Then add objects you can pick up and put down (this is pretty hard).

Then you've got the skeleton of an adventure. You can make it as complicated
as you like.
 
J

Joe Wright

Ben said:
If all you have is a hammer, everything looks like a nail.
But today a wide range of language tools are available.

The first Adventure, or Dungeons and Dragons that I saw was text based
and written in Fortran77 and running on an IntellecII (i8080)
development system circa 1980. Hence my reference to Fortran.
 
D

Default User

Ben said:
In C? Really? Why not use a language more naturally suited?

Because the OP asked for things to do in C, presumably as training
projects. Text-adventure games are ideal.

There's no indication that the OP is a expert programming wanting to
produce applications for general distribution.



Brian
 
B

Ben Pfaff

Joe Wright said:
The first Adventure, or Dungeons and Dragons that I saw was text based
and written in Fortran77 and running on an IntellecII (i8080)
development system circa 1980. Hence my reference to Fortran.

Yes, I'm aware of that. Hence my response.
 
M

Malcolm

Default User said:
Because the OP asked for things to do in C, presumably as training
projects. Text-adventure games are ideal.
The OP didn't give a very good indication of his level of ability.
The advantage of an adventure is that it is something you can make pretty
simple or pretty complicated, depending on your ambitions.
It is also something you can give to your little brother to play, as first
fruits of your programming activity. It is much more difficult to make a
usable payroll program.

However I do take Ben's point. The task maybe doesn't show off C's strengths
to the best.
 
D

Default User

Malcolm wrote:

The OP didn't give a very good indication of his level of ability.
The advantage of an adventure is that it is something you can make
pretty simple or pretty complicated, depending on your ambitions. It
is also something you can give to your little brother to play, as
first fruits of your programming activity. It is much more difficult
to make a usable payroll program.

The fact that the question is asked almost certainly indicates a
beginner level in the language, at least in my experience.
However I do take Ben's point. The task maybe doesn't show off C's
strengths to the best.

I don't see how that follows. Yes, there are specialized programming
languages for text-adventure games, notably Inform and TADS. That
doesn't mean that C is ill-suited for the task. It works just fine.

Yes, if the goal is make a game, C is not the first choice. If the goal
is to do a project it C, a game is fine. Personally I feel that a
small, doable project, even one that is of no interest to anyone else,
is a better training method that the often-recommended business of
contributing to a sourceforge project.

So:

1. If you are skilled at C, and want to contribute to a project that
"matters" try one of the open-source projects.

2. If you are learning, and want a project to cut your teeth on, a
text-adventure game is a very good one.

3. If your goal is to make a text-adventure game, use a specialty
language.


Did I cover it all?



Brian
 
M

Mark McIntyre

In C? Really? Why not use a language more naturally suited?

Because he wants to learn C?

I dunno, maybe at Stanford they're Zen about this and reckon the best
way to learn Chinese is first to study Goedelic. :)

Mark McIntyre
 
B

Ben Pfaff

Mark McIntyre said:
Because he wants to learn C?

Let me put it a different way, then.

In C? Really? Why not a project more naturally suited to the
language?
 
D

Default User

Ben Pfaff wrote:

In C? Really? Why not a project more naturally suited to the
language?

Now I think you're really off-base. Yes, there are specialty languages
for IF, but in what way is a such game not naturally suited for C?

As I said, I've done one and it was a very good training project. Look
at all you have to handle. Console input. Language parsing. Data files.
String handling. Data representation. Memory management. Best of all,
it can be done in 100% ISO standard C.

Frankly, it's one of the best projects I know of for this purpose.



Brian
 
D

Default User

Ben Pfaff wrote:

In C? Really? Why not a project more naturally suited to the
language?


A further thought is that as the OP didn't have the courtesy to follow
up with a clarification of what his needs were, this is rather
pointless. I'll be dropping this unless we hear more.



Brian
 
R

Richard Bos

hai to everybody,
i desired to do a project in c?
if u have idea about what types of problem solved by the c language?
and also specify if u have any project title with description please
specify to me
thanks in advance

One project you might consider, and which would be a blessing for many
people to have and use, is one which expands silly schoolboyish
abbreviations like "u" into proper English. It might capitalise the text
it's working on as well. If you can add a little non-ISO code to hook
into your newsreader (or web-browser, argh) and automatically apply this
to every post you make before sending it off, so much the better.

HTH; HAND.

Richard
 
R

Richard G. Riley

Let me put it a different way, then.

In C? Really? Why not a project more naturally suited to the
language?

Because a text adventure would encapsulate a broad sprectrum of what
the C language provides? Console input, parsing, file access. I would
have thought it a very good project to learn C with : one that can
also provide some fun along the route. He's not writing a project to
sell on the open market:)
 
R

Richard Bos

Richard G. Riley said:
Because a text adventure would encapsulate a broad sprectrum of what
the C language provides? Console input, parsing, file access. I would
have thought it a very good project to learn C with : one that can
also provide some fun along the route. He's not writing a project to
sell on the open market:)

Quite. Writing a text adventure in C is a very bad way to write a text
adventure, for various reasons (use Inform instead); but it's quite a
good way to learn how to employ pure ISO C to good effect. If you're not
picky about how it looks and don't want advanced features such as timed
input or sound output, you don't need anything from additional libraries
such as curses, conio or POSIX.

Richard
 
K

Kenny McCormack

Richard Bos said:
Quite. Writing a text adventure in C is a very bad way to write a text
adventure, for various reasons (use Inform instead); but it's quite a
good way to learn how to employ pure ISO C to good effect. If you're not
picky about how it looks and don't want advanced features such as timed
input or sound output, you don't need anything from additional libraries
such as curses, conio or POSIX.

If the focus is on the product/result, then, clearly, the best way to get
a text adventure game is to go to the store and buy one. Or, even simpler,
use Google and download it (sometime back, just because I was bored,
I downloaded and compiled both ADVENT and DUNGEO - still good games, by the
way).

Effectively, using something like Inform is just one step away from simply
downloading the game.
 
M

Malcolm

Kenny McCormack said:
If the focus is on the product/result, then, clearly, the best way to get
a text adventure game is to go to the store and buy one. Or, even
simpler,
use Google and download it (sometime back, just because I was bored,
I downloaded and compiled both ADVENT and DUNGEO - still good games, by
the way).

Effectively, using something like Inform is just one step away from simply
downloading the game.
As tools get higher level, it becomes easier and easier to write whatever
was envisaged by the tool designer, and harder and harder to do something
different.

For instance try to handle liquids in most text adventure systems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,944
Members
47,491
Latest member
mohitk

Latest Threads

Top